Skip to content

test(cron): add cross-timezone naive timestamp regression#1319

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-048e6599
Mar 14, 2026
Merged

test(cron): add cross-timezone naive timestamp regression#1319
teknium1 merged 1 commit intomainfrom
hermes/hermes-048e6599

Conversation

@teknium1
Copy link
Contributor

@teknium1 teknium1 commented Mar 14, 2026

Summary

Test plan

  • python -m pytest tests/test_timezone.py::TestCronTimezone::test_get_due_jobs_naive_cross_timezone -n0 -q
  • python -m pytest tests/test_timezone.py tests/cron/test_jobs.py tests/tools/test_cronjob_tools.py -n0 -q
  • python -m pytest tests/ -n0 -q

Follow-up to PR #949.
Salvages the remaining useful test coverage from PR #1308 and supersedes PR #929 for this topic.

Cherry-picked from PR #1308 by 0xNyk.

Adds an end-to-end regression test covering a Hermes timezone far behind
system local time (Pacific/Midway, UTC-11) to ensure legacy naive cron
timestamps are still recognized as due under large timezone mismatches.
@teknium1 teknium1 merged commit 1441525 into main Mar 14, 2026
1 check 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.

2 participants