Skip to content

Commit afc1671

Browse files
committed
log: json formatter: do not use datetime.UTC alias
1 parent 23e6464 commit afc1671

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

enapter/log/json_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class JSONFormatter(json_log_formatter.JSONFormatter):
77
def json_record(self, message, extra, record):
88
json_record = {
9-
"time": datetime.datetime.now(datetime.UTC).isoformat(),
9+
"time": datetime.datetime.now(datetime.timezone.UTC).isoformat(),
1010
"level": record.levelname[:4],
1111
"name": record.name,
1212
**extra,

0 commit comments

Comments
 (0)