]> git.ipfire.org Git - thirdparty/bind9.git/commit
Replace python deprecated datetime utc functions
authorMartin Basti <mbasti@isc.org>
Tue, 14 Jul 2026 09:09:10 +0000 (11:09 +0200)
committerMartin Basti <mbasti@isc.org>
Tue, 14 Jul 2026 12:33:49 +0000 (14:33 +0200)
commite8cc1747a99bc450d5d7b2aab18e4545567a1961
tree4817817d867a38474ea9c2050b0d81129f7679e9
parente9c4c2619de2bb2d397f5433f11e4aff1ebdf537
Replace python deprecated datetime utc functions

Functions `utcnow` and `utcfromtimestamp` are deprecated in python and
print warnings into tests logs about it.

Use the python prefered way by defining `timezone.utc` in `now` and
`fromtimestamp` functions. Which are equivalent but safer than naive
objects without timezone.

To ensure comptibility `%z` was added to format string to properly
process `Z` as UTC timezone.

Assisted-by: Claude:claude-opus-4-8
bin/tests/system/statschannel/generic.py
contrib/gitchangelog/gitchangelog.py