comparison app/model/MmtMessprogramm.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 b2fcbdc4969d
children f73ca04d73a7
comparison
equal deleted inserted replaced
969:d4603049cd42 970:f4eb53ba63fc
28 convert: function(v) { 28 convert: function(v) {
29 if (!v) { 29 if (!v) {
30 return v; 30 return v;
31 } 31 }
32 return new Date(v); 32 return new Date(v);
33 }, 33 }
34 defaultValue: new Date()
35 }], 34 }],
36 35
37 idProperty: 'id', 36 idProperty: 'id',
38 37
39 proxy: { 38 proxy: {

http://lada.wald.intevation.org