Lines 31-36
Link Here
|
31 |
* as well as a 'withtime' boolean denoting whether to include time or not in the output string. |
31 |
* as well as a 'withtime' boolean denoting whether to include time or not in the output string. |
32 |
*/ |
32 |
*/ |
33 |
window.$date = function(value, options) { |
33 |
window.$date = function(value, options) { |
|
|
34 |
if(!value) return ''; |
34 |
var tz = (options&&options.tz)||def_tz; |
35 |
var tz = (options&&options.tz)||def_tz; |
35 |
var m = moment(value); |
36 |
var m = moment(value); |
36 |
if((m.creationData().format !== 'YYYY-MM-DD')&&tz) m.tz(tz); |
37 |
if((m.creationData().format !== 'YYYY-MM-DD')&&tz) m.tz(tz); |
Lines 54-59
Link Here
|
54 |
}; |
55 |
}; |
55 |
|
56 |
|
56 |
window.$time = function(value, options) { |
57 |
window.$time = function(value, options) { |
|
|
58 |
if(!value) return ''; |
57 |
var tz = (opitons&&options.tz)||def_tz; |
59 |
var tz = (opitons&&options.tz)||def_tz; |
58 |
var m = moment(value); |
60 |
var m = moment(value); |
59 |
if(tz) m.tz(tz); |
61 |
if(tz) m.tz(tz); |
60 |
- |
|
|