changeset 563:c3169d4847dd

Datumsumwandlung Timestamp -> Datum korrigiert
author Dustin Demuth <dustin@intevation.de>
date Mon, 09 Mar 2015 15:23:06 +0100
parents e362ecb46e77
children 7a163f7ad5d8
files app/model/Messung.js
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/app/model/Messung.js	Mon Mar 09 12:50:14 2015 +0100
+++ b/app/model/Messung.js	Mon Mar 09 15:23:06 2015 +0100
@@ -26,9 +26,9 @@
         name: 'messzeitpunkt',
         convert: function(v) {
             if (!v) {
-                return v;
+               return new Date();
             }
-            return new Date();
+            return new Date(v);
         },
         defaultValue: new Date()
     }, {
@@ -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