diff options
author | Thomas Citharel <tcit@tcit.fr> | 2023-01-04 17:32:23 +0100 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2023-01-04 17:40:40 +0000 |
commit | ab6e7d33f82880174490b507378c7bf4bd2998e6 (patch) | |
tree | 8fa659b7e66925d326bed9da4600cf2956ef7dba /core | |
parent | e235c6438c5013bf81ee34d283b8aea43305400f (diff) | |
download | nextcloud-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')
-rw-r--r-- | core/src/components/login/LoginForm.vue | 3 | ||||
-rw-r--r-- | core/vendor/.gitignore | 3 |
2 files changed, 1 insertions, 5 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: '', diff --git a/core/vendor/.gitignore b/core/vendor/.gitignore index 1fbc5a2d6dc..8d11b9a1562 100644 --- a/core/vendor/.gitignore +++ b/core/vendor/.gitignore @@ -53,9 +53,6 @@ jcrop/css/jquery.Jcrop.min.css jcrop/js/** !jcrop/js/jquery.Jcrop.js -# jsTimezoneDetect -jsTimezoneDetect/jstz.min.js - # handlebars handlebars/** !handlebars/.bower.json |