Skip to content

Commit

Permalink
Fixed incorrect import
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Dec 14, 2024
1 parent bbb3bf2 commit a4f9b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/utc-warning-fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ I found another hint [in the docs](https://docs.python.org/3/library/datetime.ht
Again, `timezone.utc` was the right fix here to keep things working in pre-3.11 versions:

```python
import python
import datetime

utc_datetime = datetime.datetime.fromtimestamp(created_string, datetime.timezone.utc)
```
Expand Down

0 comments on commit a4f9b6d

Please sign in to comment.