Skip to content

Commit 4ef833c

Browse files
committed
fix: replace UTC with timezone
1 parent 4cb875c commit 4ef833c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/funix/app/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import json
55
import os
66
import re
7-
from datetime import datetime, UTC
7+
from datetime import datetime, timezone
88
from secrets import token_hex
99

1010
from flask import Flask, Response, abort, request
@@ -87,7 +87,7 @@ def funix_logger(response: Response) -> Response:
8787
),
8888
[
8989
{
90-
"time": datetime.now(UTC).isoformat(),
90+
"time": datetime.now(timezone.utc).isoformat(),
9191
"req": dumped_req,
9292
"resp": dumped_resp,
9393
}

0 commit comments

Comments
 (0)