Skip to content

docs: document TZ=UTC default for wrangler dev local runtime#30527

Merged
petebacondarwin merged 1 commit into
productionfrom
pbd/miniflare-tz-utc
May 7, 2026
Merged

docs: document TZ=UTC default for wrangler dev local runtime#30527
petebacondarwin merged 1 commit into
productionfrom
pbd/miniflare-tz-utc

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented May 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents the new TZ=UTC default for the local Workers runtime, introduced in cloudflare/workers-sdk#13776 (closes cloudflare/workers-sdk#8106).

Cloudflare's production runtime runs Workers with TZ=UTC, but Miniflare previously inherited the host machine's timezone, causing dev/prod drift in Date and Intl behaviour. Local development now matches production by default — this PR updates the docs to reflect that.

Two small additions:

Documentation checklist

  • Is there a changelog entry? — N/A; this documents an existing in-flight change to local dev behaviour. The workers-sdk PR will produce a Wrangler/Miniflare changelog entry.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes. — N/A; not a new page.
  • Files which have changed name or location have been allocated redirects. — N/A; no renames or moves.

Open in Devin Review

Local Workers development now runs with TZ=UTC to match the production
Cloudflare runtime (cloudflare/workers-sdk#13776, closes
cloudflare/workers-sdk#8106). Document the new default in two places:

- Add a bullet to the Defaults list on the Development & testing page.
- Add a Note callout under `wrangler dev` on the Workers commands page.
@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @korinne, @WalshyDev, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing, @cloudflare/product-owners, @cloudflare/wrangler, @mattietk, @cloudflare/dev-plat-leads
/src/content/docs/workers/wrangler/ @cloudflare/wrangler, @irvinebroque, @cloudflare/pcx-technical-writing, @cloudflare/product-owners

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@MattieTK

MattieTK commented May 5, 2026

Copy link
Copy Markdown
Member

@petebacondarwin I feel like the comment on the changelog is wrong here?

We probably should have a changelog to alert people given this is a bugfix but a possible breaking change?

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@petebacondarwin I feel like the comment on the changelog is wrong here?

We probably should have a changelog to alert people given this is a bugfix but a possible breaking change?

I don't actually believe that this has any breaking change concerns. We haven't come up with any scenario where this bug fix would actually break anyone. I think it was us just being a bit over cautious when first considering this change.

@petebacondarwin petebacondarwin merged commit f7a3808 into production May 7, 2026
18 checks passed
@petebacondarwin petebacondarwin deleted the pbd/miniflare-tz-utc branch May 7, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[miniflare]: Set TZ=UTC for wrangler dev

8 participants