Function mozjs::jsapi::JS::ResetTimeZone
source ยท pub unsafe extern "C" fn ResetTimeZone()
Expand description
Re-query the system to determine the current time zone adjustment from UTC, including any component due to DST. If the time zone has changed, this will cause all Date object non-UTC methods and formatting functions to produce appropriately adjusted results.
Left to its own devices, SpiderMonkey itself may occasionally try to detect system time changes. However, no particular frequency of checking is guaranteed. Embedders unable to accept occasional inaccuracies should call this method in response to system time changes, or immediately before operations requiring instantaneous correctness, to guarantee correct behavior.