[Lada-commits] [PATCH 3 of 3] Datumsumwandlung Timestamp -> Datum korrigiert
Wald Commits
scm-commit at wald.intevation.org
Mon Mar 9 16:32:05 CET 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1425911353 -3600
# Node ID 7a163f7ad5d8016c123ed3a34c4aeef1187c77ba
# Parent c3169d4847ddd1d174619f795ca6490ebb92eebe
Datumsumwandlung Timestamp -> Datum korrigiert
diff -r c3169d4847dd -r 7a163f7ad5d8 app/model/Messwert.js
--- a/app/model/Messwert.js Mon Mar 09 15:23:06 2015 +0100
+++ b/app/model/Messwert.js Mon Mar 09 15:29:13 2015 +0100
@@ -39,9 +39,9 @@
type: 'date',
convert: function(v) {
if (!v) {
- return v;
+ return new Date();
}
- return new Date();
+ return new Date(v);
},
defaultValue: new Date()
}],
More information about the Lada-commits
mailing list