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:
Michael Pöhn 2022-09-30 11:13:59 +02:00
parent 7933623e93
commit 9560ed955c
2 changed files with 3 additions and 3 deletions

View file

@ -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():