projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PartPicker: Auch auf Paste-Events reagieren.
[kivitendo-erp.git]
/
js
/
kivi.js
diff --git
a/js/kivi.js
b/js/kivi.js
index
58a631a
..
058c8c5
100644
(file)
--- 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(
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
);
(parts[ ns._date_format.m ] || 0) * 1 - 1, // Months are 0-based.
(parts[ ns._date_format.d ] || 0) * 1
);