omsf-eco-infra / ticgithub

Tools to use a GitHub repository as a support ticket system
MIT License
0 stars 0 forks source link

Reminder tasks: Force `now` to be timezone-aware #54

Closed dwhswenson closed 9 months ago

dwhswenson commented 9 months ago

My best guess is that somehow PyGithub started assigning time zones to issue dates (apparently using tzlocal()?) This was causing problems.

Easiest way to solve the problem is to force a timezone on datetime.now().

codecov[bot] commented 9 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (cd85036) 34.55% compared to head (271a7b3) 34.85%.

Files Patch % Lines
ticgithub/tasks/reminder_task.py 83.33% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #54 +/- ## ========================================== + Coverage 34.55% 34.85% +0.30% ========================================== Files 20 20 Lines 848 852 +4 ========================================== + Hits 293 297 +4 Misses 555 555 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.