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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug: workerd uses computer's local time for date parsing; production uses UTC #2328

Open
kentonv opened this issue Jun 25, 2024 · 0 comments

Comments

@kentonv
Copy link
Member

kentonv commented Jun 25, 2024

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.

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

1 participant