Feature/#147 automatic time conversion #150

Merged
Serraniel merged 15 commits from feature/#147-automatic-time-conversion into develop 2020-12-29 14:40:37 +01:00
Showing only changes of commit 8d0fb9c94c - Show all commits

View file

@ -9,6 +9,9 @@ const DAYS = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'
export function init() { export function init() {
getGlobalConfiguration().getProperty(SETTINGS_websiteAutoTimeConversion, value => { getGlobalConfiguration().getProperty(SETTINGS_websiteAutoTimeConversion, value => {
if (value) { if (value) {
// The regexp pattern matches anything except the airing page.
// This is because we would have to restructure the complete site to update time data.
// Additionally, there is a big hint that all data would be UTC+1
core.runAfterLoad(() => { core.runAfterLoad(() => {
updateTimestamps(document.documentElement); updateTimestamps(document.documentElement);
}, "^/(?!airing).*$"); }, "^/(?!airing).*$");