From 8eeb7c70fe0e5217c2b8516039e4f4deeee97470 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 4 Apr 2016 17:11:41 +0200 Subject: [PATCH] JS: fehlende Klammern bei Konstruktor-Aufruf gefixt (von jshint) --- js/kivi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/kivi.js b/js/kivi.js index 58a631a78..058c8c567 100644 --- a/js/kivi.js +++ b/js/kivi.js @@ -31,7 +31,7 @@ namespace("kivi", function(ns) { ns.parse_date = function(date) { var parts = date.replace(/\s+/g, "").split(ns._date_format.sep); date = new Date( - ((parts[ ns._date_format.y ] || 0) * 1) || (new Date).getFullYear(), + ((parts[ ns._date_format.y ] || 0) * 1) || (new Date()).getFullYear(), (parts[ ns._date_format.m ] || 0) * 1 - 1, // Months are 0-based. (parts[ ns._date_format.d ] || 0) * 1 ); -- 2.20.1