sdn-sense / siterm

Apache License 2.0
3 stars 5 forks source link

Use always UTC Timezone in SiteRM. #519

Closed juztas closed 3 months ago

juztas commented 3 months ago

Note: If no time zone is specified in incoming request (delta, http) by a 'Z' or a time offset, the time zone in which the date is expressed is local. To make sure not to hit this issue, always use timezone aware times. See issues here: https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated https://dateutil.readthedocs.io/en/stable/changelog.html