comparison app/model/Messung.js @ 563:c3169d4847dd

Datumsumwandlung Timestamp -> Datum korrigiert
author Dustin Demuth <dustin@intevation.de>
date Mon, 09 Mar 2015 15:23:06 +0100
parents d47ee7439f44
children 8ed6c3fb8bda
comparison
equal deleted inserted replaced
562:e362ecb46e77 563:c3169d4847dd
24 name: 'messdauer' 24 name: 'messdauer'
25 }, { 25 }, {
26 name: 'messzeitpunkt', 26 name: 'messzeitpunkt',
27 convert: function(v) { 27 convert: function(v) {
28 if (!v) { 28 if (!v) {
29 return v; 29 return new Date();
30 } 30 }
31 return new Date(); 31 return new Date(v);
32 }, 32 },
33 defaultValue: new Date() 33 defaultValue: new Date()
34 }, { 34 }, {
35 name: 'fertig', 35 name: 'fertig',
36 type: 'boolean' 36 type: 'boolean'
37 }, { 37 }, {
38 name: 'letzteAenderung', 38 name: 'letzteAenderung',
39 type: 'date', 39 type: 'date',
40 convert: function(v) { 40 convert: function(v) {
41 if (!v) { 41 if (!v) {
42 return v; 42 return new Date;
43 } 43 }
44 return new Date(); 44 return new Date(v);
45 }, 45 },
46 defaultValue: new Date() 46 defaultValue: new Date()
47 }, { 47 }, {
48 name: 'geplant', 48 name: 'geplant',
49 type: 'boolean' 49 type: 'boolean'

http://lada.wald.intevation.org