Skip to content

Commit 624fdcf

Browse files
committed
Replaced a deprecated use of 'datetime.'
Replaced a deprecated use of 'datetime.'
1 parent bd36f1a commit 624fdcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tryloguru/LogTestLoGuru.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333

3434
def init_logging():
3535
# UTC so global logs sync.
36-
dt = datetime.datetime.utcnow()
36+
# deprecated -> dt = datetime.datetime.utcnow()
37+
dt = datetime.datetime.now(datetime.UTC)
3738
scriptName = os.path.basename(__file__)
3839
print(scriptName)
3940
# If needed, put the log file in a log directory using:

0 commit comments

Comments
 (0)