Skip to content

Fix jobs date filter timezone normalization - #39

Merged
suguanYang merged 1 commit into
stagingfrom
fix/wangbinqi/normalize-jobs-date-filters
May 12, 2026
Merged

suguanYang merged 1 commit into
stagingfrom
fix/wangbinqi/normalize-jobs-date-filters

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • normalize jobs list start_time and end_time query filters into naive UTC before DB comparisons
  • make recent_days and result URL expiry calculations use the same naive UTC convention
  • add a contract regression test for ISO UTC Z date filters on /v1/jobs/page

Tests

  • uv run pytest apps/api/tests/contract/test_job_read_contract.py::test_should_list_jobs_when_date_filters_use_iso_utc_timezone
  • uv run pytest apps/api/tests/contract/test_job_read_contract.py
  • make lint
  • make typecheck

Fixes #37

@suguanYang
suguanYang merged commit 47d23df into staging May 12, 2026
9 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