[webkit-changes] [WebKit/WebKit] 0a232b: Directly call GetTimeZoneInformationForYear on Win...
Don Olmstead
noreply at github.com
Thu Sep 19 15:13:44 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0a232bcc941495a6d4099af3b93c5b9d1f66c6db
https://github.com/WebKit/WebKit/commit/0a232bcc941495a6d4099af3b93c5b9d1f66c6db
Author: Don Olmstead <don.olmstead at sony.com>
Date: 2024-09-19 (Thu, 19 Sep 2024)
Changed paths:
M Source/WTF/wtf/DateMath.cpp
Log Message:
-----------
Directly call GetTimeZoneInformationForYear on Windows
https://bugs.webkit.org/show_bug.cgi?id=280006
Reviewed by Yusuke Suzuki.
Use GetTimeZoneInformationForYear directly instead of querying `kernel32.dll`
for a pointer to it. The function is available on all versions of Windows that
WebKit runs on.
Found becaUSE Clang 19.1.0 did not like the `reinterpret_cast` and generated
a warning.
* Source/WTF/wtf/DateMath.cpp:
(WTF::calculateUTCOffset):
(WTF::timeZoneInformationForYearFunction): Deleted.
Canonical link: https://commits.webkit.org/283952@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list