comparison app/lib/Helpers.js @ 402:60a2812568cb

Fixed converting dates from timestamp to date object to allow empty(NULL) values.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 06 Sep 2013 12:53:19 +0200
parents 1e1ee8abf91b
children debfcc7713e3
comparison
equal deleted inserted replaced
401:87c1579f320d 402:60a2812568cb
7 /** 7 /**
8 * Function to translate a timestamp into a date 8 * Function to translate a timestamp into a date
9 */ 9 */
10 ts2date: function(v, record){ 10 ts2date: function(v, record){
11 // Converts a timestamp into a date object. 11 // Converts a timestamp into a date object.
12 if (v === null || v === undefined) {
13 return v;
14 }
12 return new Date(v); 15 return new Date(v);
13 } 16 }
14 } 17 }
15 }) 18 })

http://lada.wald.intevation.org