Skip to content
All tutorials

/tutorials/timezones-utc-and-unix-time

Timezones, UTC and Unix Time: Why the Same Number Looks Different Everywhere

Why a Unix timestamp has no timezone of its own, and how the same underlying moment ends up displayed differently depending on where you are.

5 min read

Run Timestamp Converter

A timestamp itself has no timezone

A Unix timestamp is a plain count of seconds since a fixed starting point, and that count is exactly the same number no matter where in the world it is read. There is no timezone attached to the number itself at all. Timezone only enters the picture at the moment a timestamp is converted into a calendar date and time that a person actually reads, which is a display concern layered on top of the underlying number, not a property of the number itself.

What UTC actually is

UTC, Coordinated Universal Time, is the reference time zone that every other timezone is defined relative to, expressed as an offset from it. It deliberately does not observe daylight saving changes, which is exactly why it makes a stable, consistent reference point for systems that need to log or compare events across many different regions without dealing with each one's own local, seasonally shifting offset.

Why the same moment looks different everywhere

Converting the same underlying timestamp using different local timezone settings produces a different displayed date and time for each one, even though every single one of them refers to the exact same underlying instant. A timestamp that converts to 3pm in London converts to 10am in New York and to midnight the following day in Tokyo, all at once, all simultaneously true, simply because timezone conversion is the part that changes, never the underlying moment itself.

Why servers almost always log events in UTC

Storing timestamps as UTC, or as a raw Unix timestamp with no timezone attached at all, avoids an entire category of bugs that comes from comparing local times captured in different timezones, or from the same location's own local time shifting by an hour twice a year due to daylight saving. Converting to a visitor's own local timezone is left as the very last step, done only when actually displaying a time to a person, rather than baked into how the data is stored or compared internally.

Checking this yourself

The Timestamp Converter shows both the local time, based on your own device's timezone setting, and the UTC time side by side for the exact same underlying timestamp, which makes the distinction directly visible: two different looking times, describing precisely the same single moment.