Mercurial > lada > lada-client
comparison app/model/MKommentar.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 | 0c8e689f3bcb |
children | f73ca04d73a7 |
comparison
equal
deleted
inserted
replaced
969:d4603049cd42 | 970:f4eb53ba63fc |
---|---|
31 convert: function(v) { | 31 convert: function(v) { |
32 if (!v) { | 32 if (!v) { |
33 return v; | 33 return v; |
34 } | 34 } |
35 return new Date(v); | 35 return new Date(v); |
36 }, | 36 } |
37 defaultValue: new Date() | |
38 }, { | 37 }, { |
39 name: 'text' | 38 name: 'text' |
40 }], | 39 }], |
41 | 40 |
42 idProperty: 'id', | 41 idProperty: 'id', |