mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
avoid running into native-date object issue
Seem I ran into this issue: https://bugs.python.org/issue47228 This change tries to fix it by using utcnow insteas of astimezone.
This commit is contained in:
parent
7933623e93
commit
9560ed955c
2 changed files with 3 additions and 3 deletions
|
|
@ -114,7 +114,7 @@ def get_embedded_classes(apkfile, depth=0):
|
|||
|
||||
def _datetime_now():
|
||||
"""Get datetime.now(), using this funciton allows mocking it for testing."""
|
||||
return datetime.now().astimezone()
|
||||
return datetime.utcnow()
|
||||
|
||||
|
||||
def _scanner_cachedir():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue