Do Workers respect the deployed site's timezone?

Moved a Hugo project from Pages to Workers. Pages project had a TZ env variable since time zone wasn't being honoured at build time. Do workers support time zone at build time?
3 Replies
Darshan Hegde (TAM APJ)
GitHub
🚀 Feature Request: Set TZ=UTC for wrangler dev · Issue #8106 ·...
Describe the solution I was working on some code relating to time today and noticed that Cloudflare servers run workers with TZ=UTC. Someone who does not know this may be deceived by the fact that ...
Darshan Hegde (TAM APJ)
LogSnag
How to Handle Time-Zones in JavaScript with date-fns-tz | LogSnag
Discover how to easily manage different time-zones using date-fns-tz library, while planning a Halloween party across multiple time-zones.
MadDog
MadDogOP6mo ago
Thanks. My dates actually show up correctly, only that build time sticks the time to UTC. E.g if I deploy my site at Midnight in my time zone, it will be my system time locally but UTC on workers. I just need to match both. Solved by adding timezone to build.sh

Did you find this page helpful?