Lines 59-64
Link Here
|
59 |
var withtime = (options&&options.withtime)||false; |
59 |
var withtime = (options&&options.withtime)||false; |
60 |
|
60 |
|
61 |
if(dateformat=='rfc3339' && withtime) return m.format(); |
61 |
if(dateformat=='rfc3339' && withtime) return m.format(); |
|
|
62 |
if(dateformat=='iso' && withtime) return m.format("YYYY-MM-DDTHH:mm:ss.sssZ"); // Do not use toISOString(), it does not behave as expected |
63 |
// Might be fixed in a future version of dayjs |
62 |
|
64 |
|
63 |
var timeformat = (options&&options.timeformat)||def_time_format; |
65 |
var timeformat = (options&&options.timeformat)||def_time_format; |
64 |
var date_pattern = get_date_pattern(dateformat); |
66 |
var date_pattern = get_date_pattern(dateformat); |