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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/integrations/logging.py

Lines changed: 1 addition & 1 deletion
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)