Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use UTC timezone when building current compatibility date (#558)
When a user specifies a compatibility date, Miniflare compares it against the current date to make sure it's not in the future. Previously, we used the system timezone when getting the current date. Wrangler's default compatibility date is the current date in the _UTC_ timezone. This meant Miniflare occasionally thought Wrangler's compatibility date was in the future. This change updates Miniflare to always use UTC when getting the current date. Closes #2881
- Loading branch information