Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pybrake/middleware/starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import types

from starlette.applications import Starlette
from starlette.exceptions import ExceptionMiddleware
from starlette.middleware.exceptions import ExceptionMiddleware
from starlette.responses import Response
from starlette.routing import Match
from starlette.types import Receive, Scope, Send
Expand Down
4 changes: 2 additions & 2 deletions src/pybrake/utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import logging
from datetime import datetime
from datetime import datetime, UTC


def time_trunc_minute(time):
t = datetime.utcfromtimestamp(time).replace(second=0, microsecond=0)
t = datetime.fromtimestamp(time, UTC).replace(second=0, microsecond=0)
return t.strftime("%Y-%m-%dT%H:%M:%SZ")


Expand Down