comparison app/model/Location.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 d47ee7439f44
children f73ca04d73a7
comparison
equal deleted inserted replaced
969:d4603049cd42 970:f4eb53ba63fc
34 convert: function(v) { 34 convert: function(v) {
35 if (!v) { 35 if (!v) {
36 return v; 36 return v;
37 } 37 }
38 return new Date(v); 38 return new Date(v);
39 }, 39 }
40 defaultValue: new Date()
41 }, { 40 }, {
42 name: 'longitude', 41 name: 'longitude',
43 type: 'float' 42 type: 'float'
44 }, { 43 }, {
45 name: 'latitude', 44 name: 'latitude',

http://lada.wald.intevation.org