Timezone Client Hints (Server Render dates without the pain!) #307
kentcdodds
announced in
Announcements
Replies: 1 comment
-
If you would submit an RFC, issue or feature request to the standard, definitely would subscribe! Time zone information would be great to get in the client request 👍 probably also need to consider security / privacy / fingerprinting considerations, but maybe this is general enough to be less of a concern |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm excited to announce the Epic Stack now has support for a client hint cookie for the user's timezone and a utility to get a date time formatter that accounts for the user's timezone and preferred local!
Check these demos:
ssr-timezone.mp4
time-format.mp4
That time is server rendered in the user's preferred timezone and locale format. Very cool.
Docs are here: https://github.com/epicweb-dev/epic-stack/blob/main/docs/timezone.md
Thanks to @kiliman and @rajeshg for helping me with this feature!
Here's the commit: 5e15266
Beta Was this translation helpful? Give feedback.
All reactions