$calendar.timeZone()
The time zone of the given calendar.
The result can be passed to dateFormat() to format the calendar's instant in its own time zone, avoiding a day/month/year shift when the calendar's time zone differs from the user's time zone.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| calendar | Business object | The calendar whose time zone is to be determined. It can be a system or user calendar. | yes |
Type: Business object
The time zone of the given calendar, usable as the time-zone argument of dateFormat().
cal = date(2025, 11, 1).toSystemCalendar();
dateFormat("yyyy-MM-dd", $cal.timeZone()).format($cal.toDate())
Output: 2025-12-01