The tests pass with or without the changes in this commit in the docker
container, which is UTC, but fail without the changes on my laptop, which is
not UTC.
The problem is that datetime.utcnow() is not timezone aware, so it
only works on UTC systems.
Jira Ticket / Github Issue
[n/a] Added the Jira Ticket to the title of the PR e.g. (DATAUP-69 Adds a PR template)
Testing Instructions
Details for how to test the PR:
[x] Tests pass in Github Actions and locally
[x] Changes available by spinning up a local test suite and running tests
Description of PR purpose/changes
The tests pass with or without the changes in this commit in the docker container, which is UTC, but fail without the changes on my laptop, which is not UTC.
The problem is that
datetime.utcnow()
is not timezone aware, so it only works on UTC systems.Jira Ticket / Github Issue
Testing Instructions
Dev Checklist:
Updating Version and Release Notes (if applicable)