View | Details | Raw Unified | Return to bug 20936
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc (-3 / +2 lines)
Lines 27-33 Link Here
27
        window.$date = function(value, options) {
27
        window.$date = function(value, options) {
28
            var tz = (options&&options.tz)||def_tz;
28
            var tz = (options&&options.tz)||def_tz;
29
            var m = moment(value);
29
            var m = moment(value);
30
            if(tz) m.tz(tz);
30
            if((m.creationData.format !== 'YYYY-MM-DD')&&tz) m.tz(tz);
31
31
32
            var dateformat = (options&&options.dateformat)||def_date_format;
32
            var dateformat = (options&&options.dateformat)||def_date_format;
33
            var withtime = (options&&options.withtime)||false;
33
            var withtime = (options&&options.withtime)||false;
Lines 59-62 Link Here
59
        }
59
        }
60
60
61
    })();
61
    })();
62
</script>
62
</script>
63
- 

Return to bug 20936