Networking

UTC vs PST: The Time Difference and How to Convert

UTC vs PST: PST (Pacific Standard Time) is UTC-8, so UTC is 8 hours ahead of PST. During daylight saving time the US Pacific zone uses PDT instead, which is UTC-7, and the gap shrinks to 7 hours.

UTC vs PST at a glance

UTCPSTPDT
Full nameCoordinated Universal TimePacific Standard TimePacific Daylight Time
Offset from UTC0-8 hours (UTC-8)-7 hours (UTC-7)
Daylight savingNever changesWinter time in the US Pacific zoneSummer time in the US Pacific zone
When 12:00 UTC happens12:0004:0005:00

UTC is the reference time that the world's clocks are set from. PST is one local zone defined as an offset from it. US law describes the standard time of the fifth US zone as "retarded 8 hours" from the base time (15 U.S.C. 261). The older wording of the statute tied that zone to the 120th degree of longitude west. The statute does not name the zone "Pacific", so the label is convention, but the 8-hour figure is the one the law fixes.

How to convert UTC to PST and back

  • UTC to PST: subtract 8 hours. 17:00 UTC is 09:00 PST.
  • PST to UTC: add 8 hours. 09:00 PST is 17:00 UTC.
  • UTC to PDT: subtract 7 hours. 17:00 UTC is 10:00 PDT.
  • PDT to UTC: add 7 hours. 09:00 PDT is 16:00 UTC.

If the subtraction crosses midnight, the date changes too. 03:00 UTC on 10 November is 19:00 PST on 9 November.

A quick lookup table for PST (UTC-8):

UTCPST
00:0016:00 (previous day)
08:0000:00
12:0004:00
17:0009:00
20:0012:00
23:0015:00

Why "PST" is wrong for most of the year

Most of the Pacific zone moves its clocks. Federal law starts daylight saving time at 2 a.m. on "the second Sunday of March" and ends it at 2 a.m. on "the first Sunday of November" (15 U.S.C. 260a). The same section lets a state that lies entirely within one time zone exempt itself and stay on standard time. Applying the rule to 2026:

  • 8 March 2026: clocks go forward, PST (UTC-8) becomes PDT (UTC-7).
  • 1 November 2026: clocks go back, PDT becomes PST again.

So between those dates, someone in Los Angeles or Seattle is on PDT, not PST. That is about 34 weeks of the year. A schedule that says "9:00 PST" in July is ambiguous. The writer probably meant Pacific time, which is 9:00 PDT, or 16:00 UTC. Read literally it is 17:00 UTC, an hour later. The cleanest fix is to write the time in UTC, or to say "Pacific time" and let the reader's calendar resolve the offset.

The same arithmetic gives 2027: daylight saving starts on 14 March and ends on 7 November. For the same question about the US Central zone, see UTC vs CST.

UTC to PST in code

Never hard-code a subtraction of 8 hours for "Pacific time", because it breaks for the summer months. Use a named time zone, which carries the daylight saving rules. In Python 3.9 and later:

from datetime import datetime, timezone
from zoneinfo import ZoneInfo

pacific = ZoneInfo("America/Los_Angeles")
for moment in [datetime(2026, 1, 15, 12, tzinfo=timezone.utc),
               datetime(2026, 7, 15, 12, tzinfo=timezone.utc)]:
    print(moment.astimezone(pacific).strftime("%H:%M %Z %z"))

Example output (expected from the 2026 US rules; not captured from a run):

04:00 PST -0800
05:00 PDT -0700

The same UTC time lands on a different local hour in winter and summer, and astimezone() handles that. On Windows, Python has no IANA database of its own, so you may need pip install tzdata before ZoneInfo("America/Los_Angeles") will load.

If you really need a fixed UTC-8 offset with no daylight saving, which is what a literal "PST" means, use timezone(timedelta(hours=-8)). That is rarely right for user-facing times.

Writing times so nobody has to guess

RFC 3339 defines the internet timestamp format. A trailing Z denotes a UTC offset of 00:00, and a numeric offset is calculated as "local time minus UTC". The RFC's own example uses -08:00 for Pacific Standard Time. These two lines are the same instant:

2026-11-09T17:00:00Z
2026-11-09T09:00:00-08:00

That works because 09:00 at UTC-8 is 17:00 UTC. In summer the Pacific offset would be -07:00, not -08:00. Storing a timestamp in UTC, or with its offset, removes the PST/PDT question entirely.

The IANA time zone documentation says abbreviations are "ambiguous in practice" and advises: "use numeric UT offsets like -0600 instead of time zone abbreviations like CST". PST is a live example. The IANA list gives PST for Pacific time and also for the Philippines, which is a different offset.

Which one should you use?

  • Logs, databases, APIs, servers: UTC. It never shifts, so records sort and compare correctly.
  • Showing a time to someone in Los Angeles, Seattle or Vancouver: convert from UTC to America/Los_Angeles at display time, so the label is PST or PDT as appropriate.
  • Announcing a meeting across regions: give the UTC time, plus the local time with its zone name.

If your conversion is off by one hour

The usual cause is a date near a daylight saving change, or a fixed offset used where a named zone was needed. Check three things. First, which side of 8 March or 1 November (in 2026) the date falls on. Second, whether the code subtracts a hard-coded 8 hours. Third, whether the source text said "PST" when the sender really meant Pacific time, which would be PDT in summer.

Also check that the input is really UTC. A timestamp without a Z or an offset is not UTC, and many libraries will treat it as local time on the machine that parses it.

Frequently asked questions

Is PST ahead of or behind UTC?
PST (Pacific Standard Time) is behind UTC by 8 hours, written UTC-8. When it is 12:00 UTC, it is 04:00 PST. Add 8 hours to a PST time to get UTC.
Is PST the same as Pacific time?
Not always. Pacific time is the zone. It uses PST (UTC-8) in winter and PDT (UTC-7) in summer. People often write PST for the whole year, which is wrong for the summer months, when the correct label is PDT.
What is the difference between UTC and PST in 2026?
Under US federal law, daylight saving time starts on the second Sunday of March and ends on the first Sunday of November. In 2026 that means PDT (7 hours behind UTC) from 8 March to 1 November, and PST (8 hours behind UTC) from 1 November onward.
Does UTC have daylight saving time?
No. UTC never changes. Only local zones such as Pacific time move their offset from UTC, so a fixed UTC time lands on a different local clock time in summer and winter.
Does PST always mean Pacific Standard Time?
No. The IANA time zone documentation lists PST both for Pacific time and for the Philippines, and says abbreviations are ambiguous in practice. For a global audience, write a numeric offset such as UTC-8 or use UTC.

Sources