-
Notifications
You must be signed in to change notification settings - Fork 758
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: wrangler init => wrangler dev --experimental-local => ERR_FUTURE_COMPATIBILITY_DATE #2881
Comments
This manifests itself in Pages as well when using
|
irvinebroque
added a commit
to irvinebroque/pages-nodejs-compat
that referenced
this issue
Apr 1, 2023
Hey! 👋 Thanks for raising this! Part of this looks similar to #2385, but the timezone stuff is interesting. Will investigate further 👍 |
there's definitely a UTC timezone bug here. i ran into the same thing last night ~10:00 pm ET when it was already the next day UTC. |
mrbbot
added a commit
to cloudflare/miniflare
that referenced
this issue
Apr 17, 2023
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 cloudflare/workers-sdk#2881
mrbbot
added a commit
to cloudflare/miniflare
that referenced
this issue
Apr 17, 2023
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 cloudflare/workers-sdk#2881
mrbbot
added a commit
to cloudflare/miniflare
that referenced
this issue
Apr 17, 2023
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 cloudflare/workers-sdk#2881
mrbbot
added a commit
that referenced
this issue
Apr 17, 2023
mrbbot
added a commit
that referenced
this issue
Apr 17, 2023
6 tasks
penalosa
pushed a commit
that referenced
this issue
Apr 17, 2023
* Bump `@miniflare/tre` to `3.0.0-next.13` Closes #2881 * Disable zone validation with `--experimental-local` Removes login requirement when `routes` where specified in config Closes #2987 * Disable persistence without `--persist` in `--experimental-local` Previously, `--experimental-local` would persist data in `$PWD/.mf` when the `--persist` flag wasn't set. This change switches to using volatile in-memory storage, that still persists between reloads. Closes #2995 * Disable verbose `workerd` logging outside of `debug` log level This hides Wrangler DevTools inspector client connection logs, which included references to C++ source files. We get `console.log`s from the inspector too, so don't need `workerd` verbose logging for that.
mrbbot
added a commit
that referenced
this issue
Oct 31, 2023
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
mrbbot
added a commit
that referenced
this issue
Nov 1, 2023
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
mrbbot
added a commit
that referenced
this issue
Nov 1, 2023
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
mrbbot
added a commit
that referenced
this issue
Nov 1, 2023
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which Cloudflare product(s) does this pertain to?
Wrangler
What version of
Wrangler
are you using?2.12.0
What operating system are you using?
Mac
Describe the Bug
Error:
Steps to reproduce:
wrangler init
wrangler dev --experimental-local
Is the compatibility date set based on UTC, but then read by comparing local time?
When I change the compatibility date to March 8th, it works, and I get the following when running with the
--experimental-local
flag:I can only reproduce this error when running with
--experimental-local
.The text was updated successfully, but these errors were encountered: