mirror of
https://github.com/captn3m0/photon-os-advisories.git
synced 2024-09-07 16:46:34 +00:00
attempt to fix
This commit is contained in:
parent
b32893fba5
commit
34bf8d049c
2
.github/workflows/update.yaml
vendored
2
.github/workflows/update.yaml
vendored
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user