Skip to content

Commit 3a2bc1a

Browse files
committed
Fix quality warning
1 parent 99e9973 commit 3a2bc1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/leap_seconds_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def offset_seconds(self, seconds):
144144
utc_leap_list.append(UtcClock(int(entries[0]), int(entries[1])))
145145

146146
utc_leap_list_expires = UtcClock(utc_leap_list_expires_utc_time, utc_leap_list[-1].tai_utc_offset())
147-
now = UtcClock((datetime.datetime.utcnow() - UTC_EPOCH).total_seconds(), utc_leap_list[-1].tai_utc_offset())
147+
now = UtcClock((datetime.datetime.now(datetime.timezone.utc) - UTC_EPOCH).total_seconds(), utc_leap_list[-1].tai_utc_offset())
148148

149149
gnss_time_latest_template = jinja2.Template(JINJA_GNSS_TIME_LATEST_TEMPLATE)
150150
gnss_time_latest_render = gnss_time_latest_template.render({

0 commit comments

Comments
 (0)