Xale's model Days
Time zones How Xale handles them
Every call runs in the person's stored time zone. Dates and clock times are local to it; time block starts are epoch milliseconds, an instant.
Which zone
Every read and write runs in the time zone saved on the person's account. xale_ returns it as timezone, and xale_ as range..
| Case | Zone used |
|---|---|
| The account has a zone saved | That zone |
| None saved | UTC |
| The saved name isn't a real zone | UTC |
When the person chooses Allow to connect an app, Xale saves their browser's zone if the account has none. It never overwrites a zone that's saved.
Formats
| Value | Format | Meaning |
|---|---|---|
startAt on time blocks | Epoch milliseconds, 13 digits, between 2000 and 2100 | An instant |
date, dueDate, startDate, endDate | YYYY-MM-DD | A day in the person's zone |
startTime, endTime, dueTime | HH:mm, 24-hour | A clock time in the person's zone |
A start in seconds is refused: “Send the start in epoch milliseconds (13 digits), not seconds.” A start outside 2000 to 2100 is refused too.
Working out a start
To put a block at 09:00 on 4 December 2026 for someone in Europe/Lisbon, convert that local time in that zone to epoch milliseconds: 1796374800000. Don't use your own zone, or the server's.
Changing the zone
If the person is travelling, plan in their saved zone and say so, or ask them to change it in Xale. See Time zone limits · for agents.
Tools
Read next
- Checked against main
8aef9b15