App Museum
日本語

How Unix timestamps relate to time zones

Separate the instant represented by a timestamp from its UTC or local display, including date boundaries and daylight-saving transitions.

Published: 2026-08-10 · Updated: 2026-08-10

Separate the timestamp from its display

A Unix timestamp represents one instant as an elapsed amount from the epoch. The value itself does not contain a display time zone such as Japan time or a US time zone. Showing that value in UTC or in a device's local time zone changes the clock reading and may change the date.

For example, 1704067200 in seconds is the same instant in every line:

UTC:                  2024-01-01 00:00:00
Asia/Tokyo (+09:00):  2024-01-01 09:00:00
Los Angeles (-08:00): 2023-12-31 16:00:00

The Los Angeles display is in the previous year, but the timestamp has not changed. Only the UTC offset used for presentation is different.

Why environments show different results

APIs such as JavaScript Date provide UTC and local representations of the same internal time value. A local representation uses the host time zone selected by the browser or operating system and the time-zone data available there. Users with different device settings therefore see different displays.

When comparing logs or API values, avoid recording only a zone-free string such as 2024-01-01 09:00. Depending on the use case, include UTC Z, an offset such as +09:00, or a time-zone identifier such as Asia/Tokyo.

Date boundaries and daylight saving time

Near midnight UTC, the UTC and local dates differ in many regions. Before selecting “January 1 data,” define whether the range is a UTC date or a user's local date; otherwise the query boundaries will shift.

Regions that observe daylight saving time change their UTC offset during the year. During the 2024 spring transition in America/Los_Angeles, the clock advanced from 01:59:59 to 03:00:00, so local times in the 02 hour did not occur.

1710064799 seconds -> 2024-03-10 09:59:59 UTC
                   -> 2024-03-10 01:59:59 America/Los_Angeles

1710064800 seconds -> 2024-03-10 10:00:00 UTC
                   -> 2024-03-10 03:00:00 America/Los_Angeles

During an autumn transition, the same local clock time can occur twice. Using a fixed -08:00 offset all year does not reproduce the region's actual rules for every date. Future rules can change through political decisions, and environments with different time-zone database versions can also disagree.

A checklist for input and display results

  1. Confirm whether the input unit is seconds or milliseconds.
  2. View the UTC result first in the Unix timestamp converter.
  3. View the local result for the same value and record the device's time-zone setting.
  4. If the expected value specifies only a date, determine whether it is a UTC date or a regional date.
  5. Near a daylight-saving transition, convert values immediately before and after it.
  6. In a bug report, record the input, unit, UTC result, time-zone identifier, and local result together.

The App Museum Unix timestamp converter displays UTC and the browser's local time for the same input. Use the pair to separate an incorrect value from a time-zone display difference.

References

Convertersunix-timestamptimezoneutcdst
  • Convert between Unix timestamps and dates. Supports seconds and milliseconds, showing both UTC and local time.
    UtilityConverterstimetimestampdateconverterdeveloper