comparison app/model/Messprogramm.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 d4eb8fb99b5e
children f73ca04d73a7
comparison
equal deleted inserted replaced
969:d4603049cd42 970:f4eb53ba63fc
123 convert: function(v) { 123 convert: function(v) {
124 if (!v) { 124 if (!v) {
125 return v; 125 return v;
126 } 126 }
127 return new Date(v); 127 return new Date(v);
128 }, 128 }
129 defaultValue: new Date()
130 }], 129 }],
131 130
132 idProperty: 'id', 131 idProperty: 'id',
133 132
134 proxy: { 133 proxy: {

http://lada.wald.intevation.org