From a4f9b6d275be8e617efd8bc4b663f31d6c117685 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 13 Dec 2024 19:34:32 -0800 Subject: [PATCH] Fixed incorrect import --- python/utc-warning-fix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/utc-warning-fix.md b/python/utc-warning-fix.md index 67a039623..971c30e51 100644 --- a/python/utc-warning-fix.md +++ b/python/utc-warning-fix.md @@ -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) ```