From e99c15df0c9459fce65f0e9c7c44cc41b166828f Mon Sep 17 00:00:00 2001 From: Montellese Date: Tue, 9 Jun 2020 23:50:17 +0200 Subject: [PATCH] ! use datetime.timestamp() instead of strftime() to get unix epoch --- lib/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/importer.py b/lib/importer.py index 2e188c2..c383984 100644 --- a/lib/importer.py +++ b/lib/importer.py @@ -920,7 +920,7 @@ def execImport(handle: int, options: dict): if fastSync: log(f"performing fast syncronization of items viewed or updated since {str(lastSync)}") - lastSyncEpoch = parser.parse(lastSync).strftime('%s') + lastSyncEpoch = int(parser.parse(lastSync).astimezone(timezone.utc).timestamp()) updatedFilter = {'updatedAt>': lastSyncEpoch} watchedFilter = {'lastViewedAt>': lastSyncEpoch}