summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/src/views/Availability.vue4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/dav/src/views/Availability.vue b/apps/dav/src/views/Availability.vue
index 4a66dc383c2..e0128a59e0a 100644
--- a/apps/dav/src/views/Availability.vue
+++ b/apps/dav/src/views/Availability.vue
@@ -52,7 +52,6 @@ import {
enableUserStatusAutomation,
disableUserStatusAutomation,
} from '../service/PreferenceService'
-import jstz from 'jstimezonedetect'
import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection'
@@ -69,8 +68,7 @@ export default {
},
data() {
// Try to determine the current timezone, and fall back to UTC otherwise
- const defaultTimezone = jstz.determine()
- const defaultTimezoneId = defaultTimezone ? defaultTimezone.name() : 'UTC'
+ const defaultTimezoneId = (new Intl.DateTimeFormat())?.resolvedOptions()?.timeZone ?? 'UTC'
return {
loading: true,