tangled
alpha
login
or
join now
urschrei.eurosky.social
/
pyzotero
0
fork
atom
Pyzotero: a Python client for the Zotero API
pyzotero.readthedocs.io
zotero
0
fork
atom
overview
issues
pulls
pipelines
Try to fix timezone errors
urschrei.eurosky.social
6 months ago
64365e2b
2001d190
0/1
ci.yml
failed
8s
+3
-3
1 changed file
expand all
collapse all
unified
split
src
pyzotero
zotero.py
+3
-3
src/pyzotero/zotero.py
···
418
418
"""
419
419
# cache template and retrieval time for subsequent calls
420
420
try:
421
421
-
thetime = whenever.ZonedDateTime.now("GMT").py_datetime()
421
421
+
thetime = whenever.ZonedDateTime.now("Europe/London").py_datetime()
422
422
except AttributeError:
423
423
-
thetime = whenever.ZonedDateTime.now("GMT").py_datetime()
423
423
+
thetime = whenever.ZonedDateTime.now("Europe/London").py_datetime()
424
424
self.templates[key] = {"tmplt": response.json(), "updated": thetime}
425
425
return copy.deepcopy(response.json())
426
426
···
540
540
# If the template is more than an hour old, try a 304
541
541
if (
542
542
abs(
543
543
-
whenever.ZonedDateTime.now("GMT").py_datetime()
543
543
+
whenever.ZonedDateTime.now("Europe/London").py_datetime()
544
544
- self.templates[template]["updated"],
545
545
).seconds
546
546
> ONE_HOUR