summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2023-01-04 17:32:23 +0100
committernextcloud-command <nextcloud-command@users.noreply.github.com>2023-01-04 17:40:40 +0000
commitab6e7d33f82880174490b507378c7bf4bd2998e6 (patch)
tree8fa659b7e66925d326bed9da4600cf2956ef7dba /core/src
parente235c6438c5013bf81ee34d283b8aea43305400f (diff)
downloadnextcloud-server-ab6e7d33f82880174490b507378c7bf4bd2998e6.tar.gz
nextcloud-server-ab6e7d33f82880174490b507378c7bf4bd2998e6.zip
Remove jstz usage from server
Every proper browser has this kind of data now, with more up-to-date data than what's inside this package, which hasn't been updated in 3 years. https://github.com/pellepim/jstimezonedetect/issues/6 https://github.com/pellepim/jstimezonedetect/issues/9 Signed-off-by: Thomas Citharel <tcit@tcit.fr> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/components/login/LoginForm.vue3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/components/login/LoginForm.vue b/core/src/components/login/LoginForm.vue
index f9034dfe409..c7b0a9259f9 100644
--- a/core/src/components/login/LoginForm.vue
+++ b/core/src/components/login/LoginForm.vue
@@ -106,7 +106,6 @@
</template>
<script>
-import jstz from 'jstimezonedetect'
import { generateUrl, imagePath } from '@nextcloud/router'
import NcPasswordField from '@nextcloud/vue/dist/Components/NcPasswordField.js'
@@ -159,7 +158,7 @@ export default {
data() {
return {
loading: false,
- timezone: jstz.determine().name(),
+ timezone: (new Intl.DateTimeFormat())?.resolvedOptions()?.timeZone,
timezoneOffset: (-new Date().getTimezoneOffset() / 60),
headline: t('core', 'Log in to {productName}', { productName: OC.theme.name }),
user: '',