Mercurial > lada > lada-client
comparison app/model/Status.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 | a2c2039bb5d9 |
children | 0ca27b761584 f73ca04d73a7 |
comparison
equal
deleted
inserted
replaced
969:d4603049cd42 | 970:f4eb53ba63fc |
---|---|
55 convert: function(v) { | 55 convert: function(v) { |
56 if (!v) { | 56 if (!v) { |
57 return v; | 57 return v; |
58 } | 58 } |
59 return new Date(v); | 59 return new Date(v); |
60 }, | 60 } |
61 defaultValue: new Date() | |
62 }, { | 61 }, { |
63 name: 'text' | 62 name: 'text' |
64 }], | 63 }], |
65 | 64 |
66 idProperty: 'id', | 65 idProperty: 'id', |