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

Handle SSR of timestamptz #1

Open
benjie opened this issue May 14, 2019 · 1 comment
Open

Handle SSR of timestamptz #1

benjie opened this issue May 14, 2019 · 1 comment

Comments

@benjie
Copy link
Member

benjie commented May 14, 2019

Server timezone may differ from client timezone leading to dates being rendered differently on client vs server and causing hydration issues. For example, reload the email management page.

@benjie benjie changed the title Handle SSR + timestamptz Handle SSR of timestamptz Mar 25, 2020
@triptec
Copy link
Contributor

triptec commented Dec 14, 2022

@benjie I actually ran in to this as I'm developing in docker which was UTC and my browser which is CET. I think it would be nice to have a comment in the code that if the date is causing hydration errors either update the TZ env variable on the server or have the timezone added as a field in the user table or so?

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

2 participants