mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-07 16:00:28 +03:00
index: ensure index.xml timestamp is in UTC, closes #481
use verbose but safe syntax so this works with all versions of sed, e.g. osx
This commit is contained in:
parent
8fbe0738ec
commit
74c6555c71
2 changed files with 6 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ import urllib.parse
|
|||
import zipfile
|
||||
import calendar
|
||||
from binascii import hexlify, unhexlify
|
||||
from datetime import datetime
|
||||
from datetime import datetime, timezone
|
||||
from xml.dom.minidom import Document
|
||||
|
||||
from . import _
|
||||
|
|
@ -67,7 +67,7 @@ def make(apps, sortedids, apks, repodir, archive):
|
|||
common.assert_config_keystore(common.config)
|
||||
|
||||
repodict = collections.OrderedDict()
|
||||
repodict['timestamp'] = datetime.utcnow()
|
||||
repodict['timestamp'] = datetime.utcnow().replace(tzinfo=timezone.utc)
|
||||
repodict['version'] = METADATA_VERSION
|
||||
|
||||
if common.config['repo_maxage'] != 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue