Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Use UTC-based utcnow().date() instead of localtime-based date.today() #441

Merged
merged 1 commit into from
Jul 25, 2022

Commits on Jul 25, 2022

  1. Tests: Use UTC-based utcnow().date() instead of local date.today()

    `datetime.date.today()` returns the current local date. In order to
    reduce test flakyness when comparing UTC-based datetimes with localtime-
    based variants, `datetime.utcnow().date()` is a better choice.
    amotl committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    4cf9d00 View commit details
    Browse the repository at this point in the history