Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid timezones showing up in timezone lists #6

Open
Amndeep7 opened this issue Mar 21, 2024 · 0 comments
Open

Invalid timezones showing up in timezone lists #6

Amndeep7 opened this issue Mar 21, 2024 · 0 comments

Comments

@Amndeep7
Copy link
Contributor

View of the admin panel ui dropdown list where you can set the timezones for a new user

image

View of the sqlite db table for timezones

image

I believe that the db is missing some of the timezones that the browser can evidently see. Seems like there's a difference in behavior in the output of that function call between nodejs 18.19.0 and firefox 123.0.1 on mac sonoma 14.4.

nodejs
image

browser
image

IMO UTC and whatever others are there should probably be supported as an option; however, the easier thing to do would probably be to make this line a call to the api instead of initializing from the browser: https://github.com/mitre/tir/blob/main/components/UserAdmin.vue#L451

@Amndeep7 Amndeep7 changed the title Difference in behavior between nodejs and browser implementations of Intl.supportedValuesof('timeZone') Invalid timezones showing up in timezone lists Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant