docs: document the required time zone configuration #13

Merged
martin merged 1 commit from docs/time-zone into main 2026-11-11 19:17:33 +00:00
Owner

Summary

Document that the backend needs a host time zone (time.timeZone or TZ). Without one, tzlocal warns on every start and falls back to UTC, which also determines the default time zone for the APScheduler jobs and the Celery worker.

Motivation

On a NixOS host without time.timeZone the backend logs the following on each startup:

UserWarning: Can not find any timezone configuration, defaulting to UTC.

The same applies to /etc/localtime being absent. Scheduled jobs then run on UTC. This was found while cleaning up kitchenowl backend journal warnings.

Notes

A possible follow-up is to default extra-settings.TZ from config.time.timeZone in services/default.nix, so users do not have to configure the zone twice. Kept out of this PR to keep it documentation-only.

## Summary Document that the backend needs a host time zone (`time.timeZone` or `TZ`). Without one, `tzlocal` warns on every start and falls back to UTC, which also determines the default time zone for the APScheduler jobs and the Celery worker. ## Motivation On a NixOS host without `time.timeZone` the backend logs the following on each startup: ```text UserWarning: Can not find any timezone configuration, defaulting to UTC. ``` The same applies to `/etc/localtime` being absent. Scheduled jobs then run on UTC. This was found while cleaning up kitchenowl backend journal warnings. ## Notes A possible follow-up is to default `extra-settings.TZ` from `config.time.timeZone` in `services/default.nix`, so users do not have to configure the zone twice. Kept out of this PR to keep it documentation-only.
docs: document the required time zone configuration
All checks were successful
ci/woodpecker/pr/pr-review Pipeline was successful
27af9bde1a
The backend's scheduler and Celery worker resolve the host time zone through
tzlocal. On hosts without `time.timeZone` (or `TZ`), it falls back to UTC
and logs a warning on every start, so scheduled jobs run on UTC.

Document how to set the system time zone and how to override it for the
backend only.

Co-authored-by: OpenCode <opencode@anoma.ly>
martin merged commit a77e4518cb into main 2026-11-11 19:17:33 +00:00
martin deleted branch docs/time-zone 2026-11-11 19:17:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Personal/kitchenowl-flake!13
No description provided.