Mercurial > lada > lada-client
diff app/model/Messung.js @ 563:c3169d4847dd
Datumsumwandlung Timestamp -> Datum korrigiert
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Mon, 09 Mar 2015 15:23:06 +0100 |
parents | d47ee7439f44 |
children | 8ed6c3fb8bda |
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() }, {