mitre / tir

LM + MITRE SAF project
Other
6 stars 0 forks source link

Invalid timezones showing up in timezone lists #6

Open Amndeep7 opened 5 months ago

Amndeep7 commented 5 months ago

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