58576b22d6
-jQuery has been updated to v3.7.1 -Luxon has been updated to v3.4.3. Also updated the link to the documentation showing how to format dates in the settings.json.template and settings.js -Datatables has been updated to v1.13.6 -Font Awesome has been updated to v6.4.2 and all icons in the project have been updated to use the newest v6.x codes -OverlayScrollbars has been updated to v2.3.2 -flag-icons (previously called flag-icon-css) has been updated to v6.11.1 -Updated the main style.scss file with better color support for the new datatable loading animation color -Exor theme has been updated to v3.0.2 with a small fix to support the new datatable loading animation color
12 lines
802 B
Plaintext
12 lines
802 B
Plaintext
script(type='text/javascript', src='https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Intl')
|
|
script(type='text/javascript', src='https://cdn.jsdelivr.net/npm/luxon@3.4.3/build/global/luxon.min.js')
|
|
script.
|
|
function format_unixtime(unixtime, alt) {
|
|
if (alt == null)
|
|
alt = false;
|
|
// check if this date should be displayed in utc or local timezone
|
|
if (('#{settings.shared_pages.date_time.timezone}'.toLowerCase() == 'local' && !alt) || ('#{settings.shared_pages.date_time.timezone}'.toLowerCase() == 'utc' && alt))
|
|
return luxon.DateTime.fromSeconds(unixtime).toLocal().toFormat('#{settings.shared_pages.date_time.display_format}');
|
|
else
|
|
return luxon.DateTime.fromSeconds(unixtime).toUTC().toFormat('#{settings.shared_pages.date_time.display_format}');
|
|
} |