Skip to content

Commit

Permalink
removed datetime.utcnow() deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbridak committed Jan 28, 2024
1 parent 5148484 commit e488161
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wfdlogger/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# -projection azmithal -radius 200 -wait 5

from math import radians, sin, cos, atan2, sqrt, asin, pi
import datetime as dt
import sys
import socket
import os
Expand Down Expand Up @@ -693,7 +694,7 @@ def update_time(self) -> None:
Update local and UTC time on screen.
"""
now = datetime.now().isoformat(" ")[5:19].replace("-", "/")
utcnow = datetime.utcnow().isoformat(" ")[5:19].replace("-", "/")
utcnow = datetime.now(dt.UTC).isoformat(" ")[5:19].replace("-", "/")
self.localtime.setText(now)
self.utctime.setText(utcnow)

Expand Down

0 comments on commit e488161

Please sign in to comment.