Commit 4ded3bb
committed
update datetime.utcnow() to use UTC timezone-aware object
datetime.utcnow() is being deprecated in Python 3.12 as it returns a naive
datetime object without timezone information. Replace with datetime.now(UTC)
to use an explicit timezone-aware object, preventing potential timezone
ambiguity issues.
In access_token.py, updated the token expiration calculation to use the
recommended timezone-aware approach.1 parent 7380485 commit 4ded3bb
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
0 commit comments