diff app/model/Messwert.js @ 970:f4eb53ba63fc

Setting Timestamps the correct way. Before this commit the times of the instatiation of the model were used as default values, which led to wrong dates.
author Dustin Demuth <dustin@intevation.de>
date Mon, 16 Nov 2015 11:48:15 +0100
parents af16a257d5f6
children 19b78162e128 f73ca04d73a7
line wrap: on
line diff
--- a/app/model/Messwert.js	Thu Nov 12 17:38:57 2015 +0100
+++ b/app/model/Messwert.js	Mon Nov 16 11:48:15 2015 +0100
@@ -49,8 +49,7 @@
                 return new Date();
             }
             return new Date(v);
-        },
-        defaultValue: new Date()
+        }
     }, {
         name: 'treeModified',
         serialize: function(value) {

http://lada.wald.intevation.org