Timezone
Stored in the timezones collection. createdAt and updatedAt are maintained automatically.
Returned by GET /timezone, POST /timezone, DELETE /timezone/:id, GET /timezone/:id, PUT /timezone/:id, POST /timezone/initialize and 2 more.
Example
One real Timezone as returned by GET /timezone. Recorded from a live response, so the defaults, denormalised snapshots and populated fields are the actual ones:
{
"timezones": [],
"pagination": {
"currentPage": 1,
"totalPages": 0,
"totalCount": 0,
"limit": 50,
"hasNextPage": false,
"hasPrevPage": false,
"nextPage": null,
"prevPage": null
},
"filters": {
"search": "",
"global": "true",
"sort": "offset,option"
}
}
:::note Trimmed for reading A populated reference is shown by the fields that identify it rather than in full — it arrives as the entire referenced document. Long arrays are cut to the first two entries and marked, long strings are truncated, and any field that could carry a credential is dropped rather than masked. :::
Fields
| Field | Type | Notes |
|---|---|---|
value | string | required · unique |
abbr | string | required |
offset | number | required |
isdst | boolean | required · default false |
text | string | required |
utc | string[] | required · default [] |
createdBy | ObjectId -> Member | default null |
updatedBy | ObjectId -> Member | default null |
_id | ObjectId | |
createdAt | date | set once |
updatedAt | date |
Virtuals (computed, present only when the endpoint asks for them): displayText.