Mercurial > lada > lada-client
diff app/model/Probe.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 | a1783726d43e |
children | f73ca04d73a7 |
line wrap: on
line diff
--- a/app/model/Probe.js Thu Nov 12 17:38:57 2015 +0100 +++ b/app/model/Probe.js Mon Nov 16 11:48:15 2015 +0100 @@ -62,8 +62,7 @@ return v; } return new Date(v); - }, - defaultValue: new Date() + } }, { name: 'probeentnahmeEnde', type: 'date', @@ -72,8 +71,7 @@ return v; } return new Date(v); - }, - defaultValue: new Date() + } }, { name: 'mittelungsdauer' }, { @@ -84,8 +82,7 @@ return v; } return new Date(v); - }, - defaultValue: new Date() + } }, { name: 'erzeugerId' }, {