mirror of
https://github.com/captn3m0/photon-os-advisories.git
synced 2024-09-18 21:57:03 +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)
|
# 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
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user