Files
Anthias/tools
Viktor Petersson f26f3e7e0c fix(server): keep legacy host timezones from crash-looping Django (#3010)
- Hosts with a legacy alias in /etc/timezone (e.g. US/Central) passed
  the old pytz validation but failed Django's own check against
  /usr/share/zoneinfo, raising ValueError at startup in every Django
  process (server, celery, migrate)
- Validate the way Django does: a zoneinfo lookup plus the on-disk
  file check, falling back to UTC when either fails
- Ship tzdata-legacy in the base image so legacy aliases resolve and
  devices keep their actual local time instead of dropping to UTC
- Add regression tests for the validation fallback

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 10:31:41 +02:00
..