diff app/model/Messwert.js @ 564:7a163f7ad5d8

Datumsumwandlung Timestamp -> Datum korrigiert
author Dustin Demuth <dustin@intevation.de>
date Mon, 09 Mar 2015 15:29:13 +0100
parents e362ecb46e77
children c07419f07a0c c5b8896768a2
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