Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a01ee718ca4d5bfd5aa0b6b8f04ed3225a992351
https://github.com/WebKit/WebKit/commit/a01ee718ca4d5bfd5aa0b6b8f04ed3225a992351
Author: Sosuke Suzuki <[email protected]>
Date: 2026-07-08 (Wed, 08 Jul 2026)
Changed paths:
M Source/JavaScriptCore/runtime/JSDateMath.cpp
M Source/JavaScriptCore/runtime/JSDateMath.h
M Source/WTF/wtf/PlatformUse.h
M Source/WTF/wtf/TimeZone.cpp
Log Message:
-----------
[JSC] Host time zone changes are never observed on ports without time zone
change notifications
https://bugs.webkit.org/show_bug.cgi?id=318841
Reviewed by Yusuke Suzuki.
316629@main made date cache invalidation depend on WTF::lastTimeZoneID(),
which is only advanced by a time zone change notifier. Ports without a
notifier (Windows, PlayStation, JSCOnly without GLib) never advance it,
so a system time zone change is never observed until process restart.
Introduce USE(TIME_ZONE_CHANGE_NOTIFICATIONS) and restore the previous
behavior on ports without it: always force a time zone check and
re-query the host time zone.
* Source/JavaScriptCore/runtime/JSDateMath.cpp:
(JSC::retrieveTimeZoneInformation):
* Source/JavaScriptCore/runtime/JSDateMath.h:
(JSC::DateCache::hasTimeZoneChange):
* Source/WTF/wtf/PlatformUse.h:
* Source/WTF/wtf/TimeZone.cpp:
Canonical link: https://commits.webkit.org/316704@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications