[Lada-commits] [PATCH 2 of 3] Datumsumwandlung Timestamp -> Datum korrigiert

Wald Commits scm-commit at wald.intevation.org
Mon Mar 9 16:32:04 CET 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1425910986 -3600
# Node ID c3169d4847ddd1d174619f795ca6490ebb92eebe
# Parent  e362ecb46e77c0b34d81bf22da8455af779a4bab
Datumsumwandlung Timestamp -> Datum korrigiert

diff -r e362ecb46e77 -r c3169d4847dd app/model/Messung.js
--- 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()
     }, {


More information about the Lada-commits mailing list