From: Martin Basti Date: Tue, 14 Jul 2026 13:08:01 +0000 (+0000) Subject: fix: test: Replace python deprecated datetime utc functions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c99a7a6b6e2a28dffca4555a9a035065f4dd733;p=thirdparty%2Fbind9.git fix: test: 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 Code:claude-opus-4-8[1m] Merge branch 'mbasti/python-fix-deprecated-utcfromtimestamp' into 'main' See merge request isc-projects/bind9!12399 --- 8c99a7a6b6e2a28dffca4555a9a035065f4dd733