Skip to content

Fix scheduler timezone drift for recurring tasks#199

Merged
everettjf merged 4 commits intomainfrom
fix/issue-194-scheduler-timezone
Mar 6, 2026
Merged

Fix scheduler timezone drift for recurring tasks#199
everettjf merged 4 commits intomainfrom
fix/issue-194-scheduler-timezone

Conversation

@everettjf
Copy link
Contributor

@everettjf everettjf commented Mar 6, 2026

Summary

  • persist task-level timezone in scheduled_tasks, so recurring tasks keep their original timezone across runs
  • update scheduler to compute cron next_run using task timezone first, with fallback to app default timezone
  • add DB migration (schema version 12) to add scheduled_tasks.timezone for existing installations
  • include timezone in scheduled task list output for easier troubleshooting
  • add timezone: auto support: resolve machine timezone at runtime (fallback UTC)
  • setup wizard defaults timezone to auto, adds common timezone picker options, and supports custom manual input

Validation

  • cargo test
  • npm --prefix web run build
  • npm --prefix website run build

Closes #194

@everettjf everettjf merged commit beea7d7 into main Mar 6, 2026
4 checks passed
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