Replace utcnow() with timezone-aware object#1484
Replace utcnow() with timezone-aware object#1484leewujung wants to merge 14 commits intoOSOceanAcoustics:mainfrom
utcnow() with timezone-aware object#1484Conversation
for more information, see https://pre-commit.ci
|
Ugh @ctuguinay sorry this is not ready for review yet. I'll ping again once it is. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1484 +/- ##
===========================================
- Coverage 83.52% 71.31% -12.21%
===========================================
Files 64 22 -42
Lines 5686 1492 -4194
===========================================
- Hits 4749 1064 -3685
+ Misses 937 428 -509
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Turns out that Onward with a version handler. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
@shivam096 : I haven’t had a chance to get back to this, but perhaps this would be a standalone issue that you can jump on easily? I haven’t looked at the latest failing report, but if the tests that are failing are actually not related to |
|
This is superseded by #1497. Closing now. |
This PR addresses the warning
datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).that occurs in various places in our codebase.