Skip to content

Fix timezone deprecation warnings#97

Merged
redreceipt merged 1 commit intomainfrom
codex/fix-datetime-deprecated-warnings
Aug 1, 2025
Merged

Fix timezone deprecation warnings#97
redreceipt merged 1 commit intomainfrom
codex/fix-datetime-deprecated-warnings

Conversation

@redreceipt
Copy link
Member

Summary

  • use timezone-aware datetime in jobs.py to avoid DeprecationWarning

Testing

  • flake8 *.py
  • mypy .

https://chatgpt.com/codex/tasks/task_e_688c0df7e140832493daa0fa44dae5d3

Copilot AI review requested due to automatic review settings August 1, 2025 00:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses timezone deprecation warnings by replacing the deprecated datetime.utcnow() method with the recommended datetime.now(timezone.utc) approach. The change ensures timezone-aware datetime handling while maintaining the same UTC functionality.

  • Updated import statement to include timezone from the datetime module
  • Replaced two instances of datetime.utcnow().date() with datetime.now(timezone.utc).date()

@redreceipt redreceipt temporarily deployed to bug-board-codex-fix-dat-42ul3y August 1, 2025 00:50 Inactive
@redreceipt redreceipt merged commit ed6b3df into main Aug 1, 2025
3 checks passed
@redreceipt redreceipt deleted the codex/fix-datetime-deprecated-warnings branch August 1, 2025 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments