Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
* as well as a 'withtime' boolean denoting whether to include time or not in the output string.
*/
window.$date = function(value, options) {
+ if(!value) return '';
var tz = (options&&options.tz)||def_tz;
var m = moment(value);
if((m.creationData().format !== 'YYYY-MM-DD')&&tz) m.tz(tz);
};
window.$time = function(value, options) {
+ if(!value) return '';
var tz = (opitons&&options.tz)||def_tz;
var m = moment(value);
if(tz) m.tz(tz);
* as well as a 'withtime' boolean denoting whether to include time or not in the output string.
*/
window.$date = function(value, options) {
+ if(!value) return '';
var tz = (options&&options.tz)||def_tz;
var m = moment(value);
if((m.creationData().format !== 'YYYY-MM-DD')&&tz) m.tz(tz);
};
window.$time = function(value, options) {
+ if(!value) return '';
var tz = (opitons&&options.tz)||def_tz;
var m = moment(value);
if(tz) m.tz(tz);