changeset 564:7a163f7ad5d8

Datumsumwandlung Timestamp -> Datum korrigiert
author Dustin Demuth <dustin@intevation.de>
date Mon, 09 Mar 2015 15:29:13 +0100
parents c3169d4847dd
children 83c0f476d825
files app/model/Messwert.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()
     }],

http://lada.wald.intevation.org