mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
fix(stats): resolve day boundaries in the reader's timezone
Day keys are written per reader but read back using UTC, the database server's CURRENT_DATE, or the server process's local year, so streaks and day-based achievements were evaluated against the wrong day. Route every lookup through one resolved timezone on the evaluation context. Install tzdata so the container honours TZ for date and subprocesses. Node already resolved TZ through ICU, so no reading data was affected by the missing package. Closes #1084
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ COPY server/requirements/kobo-cloudscraper.txt /tmp/kobo-cloudscraper-requiremen
|
||||
# pip is build-only here. Leaving it installed also leaves pip/_vendor/vendor.txt,
|
||||
# which Trivy reads as installed msgpack and setuptools and fails the image scan on.
|
||||
RUN apk upgrade --no-cache && \
|
||||
apk add --no-cache poppler-utils su-exec ffmpeg python3 py3-pip tini && \
|
||||
apk add --no-cache poppler-utils su-exec ffmpeg python3 py3-pip tini tzdata && \
|
||||
python3 -m venv /opt/bookorbit-python && \
|
||||
/opt/bookorbit-python/bin/python -m pip install --no-cache-dir -r /tmp/kobo-cloudscraper-requirements.txt && \
|
||||
/opt/bookorbit-python/bin/python -m pip uninstall -y pip && \
|
||||
|
||||
Reference in New Issue
Block a user