Skip to content

Make fallback timezone configurable #59

@animaworks-dev-team

Description

@animaworks-dev-team

Summary

core/time_utils.py has a hardcoded _FALLBACK_TZ = ZoneInfo("Asia/Tokyo"). This should be configurable for non-Japanese deployments.

What to do

  1. Add a config option (env var ANIMAWORKS_TIMEZONE or config.json field) for the default timezone
  2. Fall back to Asia/Tokyo if not set (backward compatible)
  3. Update core/time_utils.py to read from the config

How to verify

ANIMAWORKS_TIMEZONE=America/New_York uv run animaworks start
# Timestamps in the UI and logs should reflect the configured timezone

Notes

  • Use zoneinfo.ZoneInfo (stdlib) — no new dependencies needed
  • Keep Asia/Tokyo as the default to avoid breaking existing setups

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions