From a812793eadb83d430bc5ae70d4542d23cfeaac88 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 14 Jan 2022 22:02:45 +0100 Subject: [PATCH] feat: add setting for time zone to user settings --- src/i18n/lang/en.json | 3 ++- src/models/userSettings.js | 1 + src/views/user/settings/General.vue | 36 +++++++++++++++++++++++++---- 3 files changed, 35 insertions(+), 5 deletions(-) diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index 585cdfb0..306eb3f5 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -85,7 +85,8 @@ "weekStartSunday": "Sunday", "weekStartMonday": "Monday", "language": "Language", - "defaultList": "Default List" + "defaultList": "Default List", + "timezone": "Time Zone" }, "totp": { "title": "Two Factor Authentication", diff --git a/src/models/userSettings.js b/src/models/userSettings.js index 6ed0ffe5..41932e26 100644 --- a/src/models/userSettings.js +++ b/src/models/userSettings.js @@ -11,6 +11,7 @@ export default class UserSettingsModel extends AbstractModel { overdueTasksRemindersEnabled: true, defaultListId: undefined, weekStart: 0, + timezone: '', } } } \ No newline at end of file diff --git a/src/views/user/settings/General.vue b/src/views/user/settings/General.vue index 876bef26..279b004f 100644 --- a/src/views/user/settings/General.vue +++ b/src/views/user/settings/General.vue @@ -92,9 +92,9 @@
+