---
title: "Workers - The Temporal API is now available in Workers — Cloud Changelog"
description: "Workers now support the Temporal API ↗︎, the modern JavaScript standard for dates and times. You can convert between time zones, do calendar-correct date…"
url: "https://cloudchangelog.com/cloudflare/2026-12-01-temporal-api"
updated: "2026-12-01"
---

[Back to feed](https://cloudchangelog.com/feed/2026-W49)

December 1, 2026 · Cloudflare

# Workers - The Temporal API is now available in Workers

- [Workers](https://cloudchangelog.com/products/cloudflare/workers)
- [Serverless](https://cloudchangelog.com/search?q=serverless)

## What changed

**Temporal API in Workers:** Modern JavaScript date and time API, on by default from compatibility date 2026-12-01.

Generally available

Workers now support the [Temporal API ↗︎](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal), the modern JavaScript standard for dates and times. You can convert between time zones, do calendar-correct date arithmetic, and work with plain dates and times, without bundling a date library such as Moment.js, Luxon, or date-fns.

Temporal will be turned on for Workers with a [compatibility date](https://developers.cloudflare.com/workers/configuration/compatibility-dates/) of `2026-12-01` or later. To use it with an earlier compatibility date, add the [`temporal`](https://developers.cloudflare.com/workers/configuration/compatibility-flags/#enable-the-temporal-api) compatibility flag:

```
{
  "$schema": "./node_modules/wrangler/config-schema.json",
  "compatibility_flags": [
    "temporal"
  ]
}
```

```
compatibility_flags = ["temporal"]
```

This example shows the time a meeting starts in the visitor's time zone, using the time zone Cloudflare detects for the request:

src/index.jsjs

```
export default {
	async fetch(request) {
		const timeZone = request.cf?.timezone ?? "UTC";

		const meeting = Temporal.ZonedDateTime.from(
			"2026-12-15T09:30[America/New_York]",
		);
		const local = meeting.withTimeZone(timeZone);

		return new Response(
			`The meeting starts at ${local.toPlainTime()} on ${local.toPlainDate()} (${timeZone}).`,
		);
	},
};
```

src/index.tsts

```
export default {
	async fetch(request): Promise<Response> {
		const timeZone = request.cf?.timezone ?? "UTC";

		const meeting = Temporal.ZonedDateTime.from(
			"2026-12-15T09:30[America/New_York]",
		);
		const local = meeting.withTimeZone(timeZone);

		return new Response(
			`The meeting starts at ${local.toPlainTime()} on ${local.toPlainDate()} (${timeZone}).`,
		);
	},
} satisfies ExportedHandler;
```

For the full API, refer to the [Temporal documentation on MDN ↗︎](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal).

Get the week’s Cloudflare changes in one email

Your email address

Free, every Monday: only what changed in Cloudflare that week. We email you a link to confirm.

[See last week’s digest](https://cloudchangelog.com/digests/weekly-2026-W48#provider-cloudflare)

Free. Unsubscribe any time.

[Read on developers.cloudflare.com](https://developers.cloudflare.com/changelog/post/2026-12-01-temporal-api/)

## Related updates

- Aug 4, 2026

  [Workers - Node.js compatibility is now enabled by default](https://cloudchangelog.com/cloudflare/2026-08-04-nodejs-compat-default)
- Jan 28, 2025

  [Workers - Support for Node.js DNS, Net, and Timer APIs in Workers](https://cloudchangelog.com/cloudflare/2025-01-28-nodejs-compat-improvements)
- Apr 9, 2025

  [Workers - CPU time and Wall time now published for Workers Invocations](https://cloudchangelog.com/cloudflare/2025-04-09-workers-timing)
- Apr 8, 2025

  [Workers - Improved support for Node.js Crypto and TLS APIs in Workers](https://cloudchangelog.com/cloudflare/2025-04-08-nodejs-crypto-and-tls)
- Feb 15, 2026

  [Workers - New Best Practices guide for Workers](https://cloudchangelog.com/cloudflare/2026-02-15-workers-best-practices)

[All Workers changes](https://cloudchangelog.com/products/cloudflare/workers)

## Contact

- [YouTube](https://www.youtube.com/@cloudchangelog)
