summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xurldelta.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/urldelta.py b/urldelta.py
index 0b775b7..b9e2358 100755
--- a/urldelta.py
+++ b/urldelta.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-from datetime import datetime
+import datetime
import sqlite3
import time
import requests
@@ -76,7 +76,7 @@ def get_page_delta(url):
title=f"Change on {url}",
url=url,
content=f"Headers: {update[0]}\n\nContent: {update[1]}",
- date=datetime.utcfromtimestamp(update[2]),
+ date=datetime.datetime.fromtimestamp(update[2], tz=datetime.UTC),
enclosures=[],
guid=update[2],
)