Closed MVrachev closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
714a29d
) to head (915a232
). Report is 15 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The specification defines
datetime
as UTC time zone: https://theupdateframework.github.io/specification/latest/#file-formats-date-time The python-tuf project updated all their datetime objects, so it's time we do it now as well. I updated everywhere to replacedatetime.utc()
todatetime.now(timezone.utc)
asdatetime.utc()
is documented for deprecation and is officially deprecated from python 12: https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow Also, I added to alldatetime.now()
calls the argumenttimezone.utc
to make sure that we are consistent with python-tuf as python-tuf did that change as well: https://github.com/theupdateframework/python-tuf/pull/2573Signed-off-by: Martin Vrachev martin.vrachev@broadcom.com