Lines 99-104
function DateTime_from_syspref(date_time) {
Link Here
|
99 |
return datetime; |
99 |
return datetime; |
100 |
} |
100 |
} |
101 |
|
101 |
|
|
|
102 |
function ISO_to_syspref(date_time, include_time) { |
103 |
var dt = new Date(Date.parse(date_time)); |
104 |
var dateFormat = get_dateformat_str('[% Koha.Preference('dateformat') | html %]'); |
105 |
dateFormat = dateFormat.replace('yyyy', 'yy'); |
106 |
var ret = $.datepicker.formatDate(dateFormat, dt); |
107 |
if (include_time) { |
108 |
ret += ' ' + dt.getHours() + ':' + dt.getMinutes(); |
109 |
} |
110 |
return ret; |
111 |
} |
102 |
|
112 |
|
103 |
/* Instead of including multiple localization files as you would normally see with |
113 |
/* Instead of including multiple localization files as you would normally see with |
104 |
jQueryUI we expose the localization strings in the default configuration */ |
114 |
jQueryUI we expose the localization strings in the default configuration */ |
105 |
- |
|
|