diff --git a/nuxt.config.js b/nuxt.config.js index ef451a3a..43e2af44 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -83,7 +83,7 @@ export default { dayjs: { locales: ['en', 'de'], defaultLocale: 'en', - defaultTimeZone: 'Europe/Berlin', + defaultTimeZone: 'UTC', plugins: ['utc', 'timezone'] }, diff --git a/store/config.js b/store/config.js index 06482e17..34da7dab 100644 --- a/store/config.js +++ b/store/config.js @@ -68,7 +68,7 @@ export const actions = { } } - commit('UPDATE_TIMEZONE', response.data.timezone) + commit('UPDATE_TIMEZONE', response.data[0].timezone) commit('UPDATE_GUI_CONFIG', response.data) commit('UPDATE_GUI_CONFIG_RAW', _.cloneDeep(response.data)) commit('UPDATE_CONFIG_COUNT', response.data.length)