-
Notifications
You must be signed in to change notification settings - Fork 15
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
wfnews-2407 #2106
wfnews-2407 #2106
Conversation
…utomatically adjust depending on the time of the year
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want to specify a timezone. If we use toLocaleString, it will base it off the user's client time.
const updateOptions: Intl.DateTimeFormatOptions = { | ||
year: 'numeric', | ||
month: 'long', | ||
day: 'numeric', | ||
hour: 'numeric', | ||
minute: 'numeric', | ||
second: undefined, // this removes the seconds | ||
timeZone: 'America/Los_Angeles', // Pacific Time Zone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to specify timezone? If somebody was using this from the eastern parts of BC, they would be getting the wrong time zone as they are one hour ahead. Would it be enough just to get rid of the fixed PST?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I forgot to consider some part of BC are off one hour.
Removed timezone option, thanks
The PDT/PST suffix on a timestamp on the full details page needs to automatically adjust depending on the time of the year
https://apps.nrs.gov.bc.ca/int/jira/browse/WFNEWS-2407