-
Notifications
You must be signed in to change notification settings - Fork 953
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
feat: include timezone in hourly displays #6913
Conversation
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.
Nice work! One optional suggestion:)
I just noticed this! Can you create a follow up PR to fix it? |
Did you try/consider using date-fns or dayjs with AdvancedFormat to display dates in a shorter way? |
Since we don't use dayjs I'm not super keen on replacing every date-fns function with it. Cause having two date time libraries makes no sense. And with date-fns we need to import all the locales separately (it's built to be as tiny as possible) and I think they would format things roughly the same. In theory we can build or own locale with Intl and control the format more tightly but I simply don't think it's worth it. Especially since the tooltips themselves are the problem as they have not been migrated to the new design yet. |
I think it's a larger problem than just tooltips, but happy to discuss it separately at another time :) |
Description
Adds timezones to hourly time displays to reduce confusion in shared screenshots and the like.
Preview
On master:
SV:
EN:
On this branch:
SV:
EN:
Double check
pnpx prettier@2 --write .
andpoetry run format
in the top level directory to format my changes.