Skip to content

fix: keep Automation schedules and run history in local time - #2091

Open
Douglasymlai wants to merge 5 commits into
mainfrom
fix/automation-local-timezone
Open

Douglasymlai wants to merge 5 commits into
mainfrom
fix/automation-local-timezone

Conversation

@Douglasymlai

@Douglasymlai Douglasymlai commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request

Related Issue

N/A — maintainer-directed repair; no linked issue required for this PR.

Description

Automation schedules saved today’s UTC offset and could shift at daylight-saving changes. New schedules use local cron fields plus an IANA zone when supported. Verify the echoed zone and fall back to the UTC contract when it was not persisted. Previews use the saved zone, and offset-free server timestamps parse as UTC. Existing schedules without a zone keep their UTC contract on edit. The self-hosted scheduler uses additive timezone, date and expiration rules.

Current main is merged, retaining Automation draft review/focus behavior.

Testing Evidence (REQUIRED)

116 focused frontend tests and 9 self-hosted scheduler tests passed, including London/New York DST changes, missing/repeated local hours, UTC fallback, persisted zones and editing legacy schedules on a timezone-capable server. Type-check, focused ESLint/Prettier and git diff --check passed. Existing SchedulePicker/shared primitives and semantic tokens retained. No full packaged-app time-zone/theme matrix was run. The matching production server change must be deployed before this is released.

Automated checks only; manual app testing is pending.

  • I have included human-verified testing evidence in this PR.
  • This PR includes frontend/UI changes, and I attached screenshot(s) or screen recording(s).
  • No frontend/UI changes in this PR.

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Contribution Guidelines Acknowledgement

@Douglasymlai Douglasymlai self-assigned this Oct 22, 2026
@Douglasymlai
Douglasymlai marked this pull request as ready for review October 22, 2026 21:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant