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

View File

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