You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How are you deploying your application? (if relevant)
No response
Describe the Bug
This isn't a bug per se, but a breaking change for me going from v12.2.4 to v12.2.5 that I wanted to report.
Previously, I had inside my .env the line TZ=America/Argentina/Buenos_Aires that set the timezone for the entire application. After upgrading, I've found that the timezone is set a few moments after the initialization of the app (maybe introduced in #38483). This resulted in some packages initializing in one timezone and others in another, causing a mismatch.
Expected Behavior
I know that setting timezones inside a .env that then will be loaded is a bad idea, but this change could lead to other packages behaving weirdly because some env vars weren't set early enough.
Link to reproduction
.
To Reproduce
I tried to make a reproduction but I failed. This is such a niche situation that I couldn't figure out how to make a simple recreation.
If someone ends up here, I solved this by setting TZ outside the .env (like inside Vercel's Enviroment Variables or along the start script TZ=America/Argentina/Buenos_Aires next start).
The text was updated successfully, but these errors were encountered:
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
This isn't a bug per se, but a breaking change for me going from v12.2.4 to v12.2.5 that I wanted to report.
Previously, I had inside my .env the line
TZ=America/Argentina/Buenos_Aires
that set the timezone for the entire application. After upgrading, I've found that the timezone is set a few moments after the initialization of the app (maybe introduced in #38483). This resulted in some packages initializing in one timezone and others in another, causing a mismatch.Expected Behavior
I know that setting timezones inside a .env that then will be loaded is a bad idea, but this change could lead to other packages behaving weirdly because some env vars weren't set early enough.
Link to reproduction
.
To Reproduce
I tried to make a reproduction but I failed. This is such a niche situation that I couldn't figure out how to make a simple recreation.
If someone ends up here, I solved this by setting
TZ
outside the .env (like inside Vercel's Enviroment Variables or along the start scriptTZ=America/Argentina/Buenos_Aires next start
).The text was updated successfully, but these errors were encountered: