cloudflare / cloudflare/workerd
🐛 Bug: workerd uses computer's local time for date parsing; production uses UTC
Open
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
When running workerd for local testing, date-related APIs that are defined to use the local timezone actually do so, using the time zone of the machine on which workerd is running.
However, in production, Cloudflare Workers always use UTC as the time zone. This makes the local simulation inaccurate (and leads to embarrassing things like me inviting my friends to a LAN party supposedly starting at 2AM when in fact it was meant to start at noon (true story)).
workerd should strictly use UTC, to match production. Since workerd is strictly meant for servers, there's never a reason to use the machine's local time zone.
Contributor guide
Assessment
This issue has not been assessed yet.