tree: eaa31ff1ff91735771a1ec09555b42ab6c420dce [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. OWNERS
  4. README.md
  5. timezone_controller.cc
  6. timezone_controller.h
third_party/blink/renderer/core/timezone/README.md

core/timezone

This directory contains code which manages the time zone associated with a renderer. At this point the functionality involves setting ICU's default time zone and notifying V8 and workers.

Most of the time, TimeZoneController just listens to mojo notifications sent by TimeZoneMonitor service that watches host system time zone changes and sets the time zone accordingly.

Time zone override mode allows clients to temporarily override host system time zone with the one specified by the client. When the override is removed, the current host system time zone is assumed.

Time zone override functionality is exposed through the DevTools protocol method Emulation.setTimezoneOverride.

The time zone identifier format is compatible with IANA time zone database, also known as Olson database. The list of available time zone identifiers can be found in the List of tz database time zones

See Also