Skip to content

Commit 074bd74

Browse files
authored
fixes (#4052)
1 parent bbdc7e3 commit 074bd74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zenml/logging/step_logging.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def emit(self, record: logging.LogRecord) -> None:
159159
message=message,
160160
name=record.name,
161161
level=level,
162-
timestamp=utc_now(),
162+
timestamp=utc_now(tz_aware=True),
163163
module=record.module,
164164
filename=record.filename,
165165
lineno=record.lineno,
@@ -178,7 +178,7 @@ def emit(self, record: logging.LogRecord) -> None:
178178
module=record.module,
179179
filename=record.filename,
180180
lineno=record.lineno,
181-
timestamp=utc_now(),
181+
timestamp=utc_now(tz_aware=True),
182182
chunk_index=i,
183183
total_chunks=len(chunks),
184184
id=entry_id,
@@ -275,7 +275,7 @@ def parse_log_entry(log_line: str) -> Optional[LogEntry]:
275275

276276
timestamp = None
277277
if old_format:
278-
timestamp = old_format.group(1)
278+
timestamp = old_format.group(1) + "Z"
279279
line = line.replace(old_format.group(0), "").strip()
280280

281281
return LogEntry(

0 commit comments

Comments
 (0)