Skip to content

Commit 1e3fe44

Browse files
authored
fix(pkgs/paws): set timezone to UTC for fetcher (#503)
1 parent 50abeb9 commit 1e3fe44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/paws.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import json
66
import subprocess
77
from multiprocessing import cpu_count
8-
from datetime import datetime
8+
from datetime import datetime, timezone
99
from pathlib import Path
1010

1111
# Directory of the current script
@@ -59,7 +59,7 @@ async def handle_port(sources: dict, port: str, remove=False):
5959
else:
6060
data = await fetch_port(port)
6161
locked = data["locked"]
62-
last_modified = datetime.fromtimestamp(int(locked["lastModified"])).strftime('%Y-%m-%d')
62+
last_modified = datetime.fromtimestamp(int(locked["lastModified"]), tz = timezone.utc).strftime('%Y-%m-%d')
6363
sources[port] = {"rev": locked["rev"], "hash": locked["narHash"], "lastModified": last_modified}
6464

6565

0 commit comments

Comments
 (0)