mirror of
https://github.com/daijro/camoufox.git
synced 2026-11-19 00:07:28 +00:00
The else branch in _build_init_script() reads the system timezone via Intl.DateTimeFormat().resolvedOptions().timeZone and stores it via setTimezone(). When geoip resolves a different timezone (set later via CAMOU_CONFIG/launch_options), the storage value from the init_script takes precedence — workers read the wrong timezone and the C++ MaskConfig fallback (PR #546) is never reached. Fix: only call setTimezone() when an explicit timezone value is provided. When omitted, timezone propagation is handled entirely by the C++ side (SetNewDocument + TimezoneManager::GetTimezone MaskConfig fallback). Companion to #546 (Fix worker timezone leak when using geoip/proxy). Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>