Cloudflare Workers adds support for the Temporal API
Brief
Workers now supports the Temporal API for date, time, and time-zone handling.
Availability and setup
- Temporal is on by default for Workers with a compatibility date of 2026-12-01 or later.
- Projects using an earlier compatibility date can enable it with the
temporalcompatibility flag.
What it supports
- The API supports time-zone conversions, calendar-correct date arithmetic, and plain dates and times.
- Workers can use it without bundling a date library such as Moment.js, Luxon, or date-fns.
Generated by AI from the original article. Check the source for full details.