changeset 593:9b3adfb7b1ae

Updated status model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 12 Mar 2015 09:45:52 +0100
parents 825973ca386f
children 89b337cbfb5d
files app/model/Status.js
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/model/Status.js	Thu Mar 12 09:44:47 2015 +0100
+++ b/app/model/Status.js	Thu Mar 12 09:45:52 2015 +0100
@@ -17,9 +17,19 @@
     }, {
         name: 'messungsId'
     }, {
+        name: 'erzeuger'
+    }, {
         name: 'status'
     }, {
-        name: 'sdatum'
+        name: 'sdatum',
+        type: 'date',
+        convert: function(v) {
+            if (!v) {
+                return v;
+            }
+            return new Date(v);
+        },
+        defaultValue: new Date()
     }, {
         name: 'skommentar'
     }],

http://lada.wald.intevation.org