Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Timestamps are recorded to the Registry database in UTC (AR-GMR-4), albeit without any explicit label. This is based on the default timezone set in config/app.php. It is strongly recommended that this default not be changed.

Because most people don't live or work in UTC, Registry will attempt to output timestamps in the user's local timezone. This is done as follows:

  1. Using the preferred timezone of the current Person, if set. An administrator can set this via the Person record, or it may also be set via self service. When set via self service, the user must logout before the preference will take effect. Because this preference is attached to a Person record, it may not be applied when viewing non-CO specific pages (as an administrator might).
  2. Using browser detection, if no preferred timezone is set. Whenever a browser visits any Registry page, some local javascript will run and attempt to determine the current browser's timezone, which will then be stored in a cookie. On the next page load, the cookie will pass the detected timezone to Registry, which will then localize the time display accordingly.
  3. If no cookie is returned, using the default timezone (ie: UTC).
Info

All times processed via the REST API are in UTC.