Skip to content

Commit bac5243

Browse files
authored
Merge branch 'main' into botocore-server-attributes
2 parents 007bf16 + dec311f commit bac5243

File tree

1 file changed

+3
-1
lines changed
  • exporter/opentelemetry-exporter-richconsole/src/opentelemetry/exporter/richconsole

1 file changed

+3
-1
lines changed

exporter/opentelemetry-exporter-richconsole/src/opentelemetry/exporter/richconsole/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868

6969

7070
def _ns_to_time(nanoseconds):
71-
ts = datetime.datetime.utcfromtimestamp(nanoseconds / 1e9)
71+
ts = datetime.datetime.fromtimestamp(
72+
nanoseconds / 1e9, datetime.timezone.utc
73+
)
7274
return ts.strftime("%H:%M:%S.%f")
7375

7476

0 commit comments

Comments
 (0)