mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 10:21:05 +03:00
convert apk timestamp from filesystem to utc before storing
This commit is contained in:
parent
50c17f99d1
commit
290b9050e0
2 changed files with 2 additions and 2 deletions
|
@ -28,6 +28,7 @@ import socket
|
|||
import zipfile
|
||||
import hashlib
|
||||
import pickle
|
||||
import time
|
||||
from datetime import datetime, timedelta
|
||||
from argparse import ArgumentParser
|
||||
|
||||
|
@ -930,7 +931,7 @@ def scan_repo_files(apkcache, repodir, knownapks, use_date_from_file=False):
|
|||
|
||||
if use_date_from_file:
|
||||
timestamp = stat.st_ctime
|
||||
default_date_param = datetime.fromtimestamp(timestamp).utctimetuple()
|
||||
default_date_param = time.gmtime(time.mktime(datetime.fromtimestamp(timestamp).timetuple()))
|
||||
else:
|
||||
default_date_param = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue