PuppyIP Resource Center
Cloud Operations 6 min Published 2026-12-01

Cloudflare Workers Temporal: Compatibility Dates and Time-Zone Testing

Cloudflare Workers enables Temporal by default at compatibility date 2026-12-01 and later. Check the target Worker’s effective settings and verify a date and time case from your application.

Cloudflare Workers Temporal API Compatibility Dates Time Zones

Service eligibility and regional restrictions

PuppyIP serves only compliant overseas businesses and their authorized personnel. Proxy services are not available in mainland China. The service may only be used for lawful business activities outside mainland China. Use of this service within mainland China is prohibited.

Hosting a proxy IP or server overseas does not change these restrictions. The service must not be provided to end users in mainland China through relaying, forwarding, sharing or resale. Before use, read the Terms of Service.

Key Takeaways

  • Compatibility date 2026-12-01 or later enables Temporal by default. Earlier dates can opt in with temporal.
  • The runtime changelog listed explicit opt-in on November 2. A changed Wrangler compatibility date takes effect when the configuration is deployed.
  • Use no_temporal to opt out. Confirm API availability and check time-zone and calendar results in the target Worker.

Treat the compatibility date as a runtime baseline

A Worker’s compatibility_date sets its runtime behavior baseline. Read it in Wrangler configuration or the dashboard. A new Wrangler date takes effect on the next deployment, and a Worker pinned to an earlier date keeps its baseline as the calendar advances.

Cloudflare’s runtime changelog listed the explicit temporal flag on November 2. Its December 1 announcement confirms Temporal is the default for Workers with compatibility date 2026-12-01 or later.

Choose flags for the behavior you want

For an earlier compatibility date, add temporal to the existing compatibility_flags list. Compatibility date 2026-12-01 and later enables Temporal by default. To opt out, remove any explicit temporal flag and add no_temporal.

Preserve the project’s other flags and bindings. Deploy to staging and check the settings that take effect in the target Worker.

Wrangler JSON example for an earlier compatibility date

json
{
  "compatibility_date": "2026-11-30",
  "compatibility_flags": ["temporal"]
}
This shows only the date and Temporal flag. Keep the other project fields when merging it into an existing configuration.

Explicit opt-out with a newer compatibility date

json
{
  "compatibility_date": "2026-12-01",
  "compatibility_flags": ["no_temporal"]
}
Remove temporal before adding the opt-out flag; do not set opposite flags together.

Check the Worker that will actually run the code

Start in local development or a staging Worker with the configuration intended for the target environment. A temporary test route can return whether typeof Temporal is undefined. typeof lets the code check safely when the API is absent without first reading Temporal directly. Restrict this route to development or staging, remove it after testing, and do not leave a diagnostic endpoint on a public production interface.

Temporal support in local Node.js does not prove that the target Worker uses the same compatibility date, flags, or deployed version. Test the Worker after applying the intended Wrangler or dashboard configuration. If the project has multiple environments or scripts, check the effective compatibility_date and compatibility_flags for each one.

Temporary API check inside a Worker

text
const hasTemporal = typeof Temporal !== "undefined";
return new Response(hasTemporal ? "available" : "unavailable");
Use only in development or staging, then remove the temporary diagnostic response.

Verify a real result in a named time zone

API availability is only the first check. Choose a real application case and verify the resulting date, time, and offset. To convert one specific instant to another zone, use a ZonedDateTime with an IANA time-zone name instead of adding a fixed number of hours to UTC by hand. Cloudflare’s example converts 09:30 in New York on December 15, 2026, to 14:30 UTC in London.

For a birthday or business opening date that does not identify one global instant, decide whether the value should be a PlainDate or PlainTime, or a time-zone-aware instant. Also cover daylight-saving transitions, months with different lengths, and missing time-zone input. Put expected values in regression tests and run them against the target Worker version. Temporal can handle date and time-zone arithmetic, but it cannot choose the business time zone or policy for ambiguous input.

Time-zone conversion from Cloudflare’s example

text
const meeting = Temporal.ZonedDateTime.from(
  "2026-12-15T09:30[America/New_York]",
);
meeting.withTimeZone("Europe/London").toString();
// "2026-12-15T14:30:00+00:00[Europe/London]"
The fixed sample makes conversion easy to check; production logic should use the time zone selected for the actual application.

Sources

Frequently Asked Questions

Can I enable Temporal on an older compatibility date without changing that date?

Yes. Add temporal to the target Worker’s compatibility_flags to opt in to Temporal by itself. Review the existing flags and verify the configuration in staging.

Which clock does Temporal.Now use?

Cloudflare documents that it returns the same time as Date.now() in that Worker. Check time boundaries in the target runtime.

Can I ship as soon as typeof Temporal succeeds?

No. That check only shows that the API is available. Verify values for the application’s time zones, daylight-saving boundaries, and calendar arithmetic, then test the actual Worker configuration in staging.