attempt to fix

This commit is contained in:
Nemo 2024-05-27 18:13:10 +05:30
parent b32893fba5
commit 34bf8d049c
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ jobs:
# of simplejson (https://github.com/matrix-org/python-canonicaljson/pull/25/files)
- uses: actions/setup-python@v4
with:
python-version: 'pypy3.9'
python-version: 'pypy3.10'
- name: Update data
run: |
mkdir -p advisories

View File

@ -5,7 +5,7 @@ import markdown
import json
import canonicaljson
import urllib.request
from datetime import datetime,UTC
from datetime import datetime
import copy
import os
import re
@ -29,7 +29,7 @@ def last_modified_date(file):
.decode("utf-8")
.strip()
)
return datetime.fromtimestamp(p, UTC)
return datetime.utcfromtimestamp(p)
def created_date(file):