Skip to content

Commit fed714a

Browse files
authored
fix: Timezone bug in logging integration (getsentry#464)
* fix: Timezone bug in logging integration * fix: typo
1 parent c8a1be9 commit fed714a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/logging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _breadcrumb_from_record(record):
9696
"level": _logging_to_event_level(record.levelname),
9797
"category": record.name,
9898
"message": record.message,
99-
"timestamp": datetime.datetime.fromtimestamp(record.created),
99+
"timestamp": datetime.datetime.utcfromtimestamp(record.created),
100100
"data": _extra_from_record(record),
101101
}
102102

0 commit comments

Comments
 (0)