Run the browser in IST so Aquilaehr Visit Dates are not shifted a day

Aquilaehr's Export CSV is built in the browser and converts Visit Date to
the browser timezone. On the server (TZ=America/New_York) every visit came
out one day early, so Alpha matched 11 of 214 instead of 190.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
VasanthandClaude Opus 5.5 committed 2026-10-27 19:14:37 +05:30
1 parent c7094b694f
commit 2e1f28967e
3 files changed
+14 -1

No files matched your search

+3
View File
@@ -270,6 +270,9 @@ def run_site(site, locations):
executable_path=chrome_path or None,
channel=None if chrome_path else os.environ.get("CHROME_CHANNEL", "chrome") or None,
headless=headless,
# Aquilaehr builds its Export CSV in the browser and shifts Visit Date by the browser's
# timezone: a US-timezone server gave every visit the day before. Match the team's IST.
timezone_id=os.environ.get("BROWSER_TZ", "Asia/Kolkata"),
accept_downloads=True, no_viewport=not headless,
viewport={"width": 1440, "height": 900} if headless else None,
)