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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc (-1 / +6 lines)
Lines 67-72 Link Here
67
            return m.format(get_time_pattern(timeformat)+(dateformat=='rfc3339'?':ss'+(!m.isUTC()?'Z':''):''))+(dateformat=='rfc3339' && m.isUTC()?'Z':'');
67
            return m.format(get_time_pattern(timeformat)+(dateformat=='rfc3339'?':ss'+(!m.isUTC()?'Z':''):''))+(dateformat=='rfc3339' && m.isUTC()?'Z':'');
68
        }
68
        }
69
69
70
        window.$date_to_rfc3339 = function(value, options) {
71
            var dateformat = (options&&options.dateformat)||def_date_format;
72
            let m = moment(value, get_date_pattern(dateformat));
73
            return m.format("YYYY-MM-DD");
74
        }
75
70
    })();
76
    })();
71
</script>
77
</script>
72
<!-- / js-date-format.inc -->
78
<!-- / js-date-format.inc -->
73
- 

Return to bug 33132