Timezone Edge Cases — Half-Hour Offsets, Date Line, and More
Explore unusual timezone edge cases: half-hour and 45-minute offsets, the International Date Line, timezones that skip days, and countries that changed timezone mid-year.
Edge Cases
Detailed Explanation
Timezone Edge Cases Every Developer Should Know
Beyond standard hourly offsets, the world of timezones is full of surprising edge cases that can break assumptions in software.
Half-Hour Offsets
Several regions use 30-minute offsets:
| Timezone | UTC Offset | Region |
|---|---|---|
| Asia/Kolkata | +05:30 | India |
| Asia/Colombo | +05:30 | Sri Lanka |
| Australia/Adelaide | +09:30 / +10:30 | South Australia |
| Asia/Yangon | +06:30 | Myanmar |
| Asia/Kabul | +04:30 | Afghanistan |
| America/St_Johns | -03:30 / -02:30 | Newfoundland, Canada |
| Asia/Tehran | +03:30 / +04:30 | Iran |
| Australia/Darwin | +09:30 | Northern Territory |
45-Minute Offsets
Even more unusual are 45-minute offsets:
| Timezone | UTC Offset | Region |
|---|---|---|
| Asia/Kathmandu | +05:45 | Nepal |
| Pacific/Chatham | +12:45 / +13:45 | Chatham Islands, NZ |
| Australia/Eucla | +08:45 | Western Australia (unofficial) |
The International Date Line
The International Date Line runs roughly along the 180th meridian but zigzags around countries. This creates some peculiarities:
- Samoa (Pacific/Apia) switched from UTC-11 to UTC+13 in December 2011, skipping December 30 entirely
- Kiribati spans UTC+12 to UTC+14, meaning parts are always a day ahead of UTC
- UTC+14 (Pacific/Kiritimati) is the first place to enter each new day
Countries That Changed Their Timezone
- North Korea created its own timezone (UTC+08:30) in 2015, then switched back to UTC+09 in 2018
- Samoa jumped across the date line in 2011 (from UTC-11 to UTC+13)
- Turkey permanently adopted UTC+03 in 2016, abandoning DST
- Russia has changed its timezone rules multiple times, most recently in 2014
Antarctica
Antarctica has no native timezones. Research stations use the timezone of their supplying country:
- McMurdo Station (US): Pacific/Auckland (UTC+12/+13)
- Palmer Station (US): America/Palmer (UTC-03)
- Vostok Station (Russia): Asia/Urumqi (UTC+06)
The Day Has More Than 24 Hours
Because timezones span from UTC-12 to UTC+14, there are moments when three different calendar dates exist simultaneously on Earth:
At 10:00 UTC on March 15:
- UTC-12 (Baker Island): March 14, 10:00 PM (yesterday)
- UTC+00 (London): March 15, 10:00 AM (today)
- UTC+14 (Kiritimati): March 16, 12:00 AM (tomorrow)
Use Case
Understanding timezone edge cases is essential for building globally robust software. Booking systems must handle half-hour offsets correctly. Calendar applications need to account for date line crossings. Historical data analysis must consider countries that changed their timezone rules. Any assumption like 'offsets are always whole hours' or 'a day is always 24 hours' will eventually break in production.