We've all heard "store everything in UTC." For a timestamp that already happened, that's the right default. For a meeting that has not happened yet, it can quietly go wrong. The time you actually promised is a civil time in a city — 10:00 in Casablanca on 15 October 2026 — and that city's offset can still change after you save the event. Morocco did exactly that this year.
What changed
On Sunday, 20 September 2026, at 02:00, clocks in Morocco went back 60 minutes. Decree No. 2.26.530, adopted on 25 June 2026 and published in Bulletin Officiel No. 7521 on 29 June, returned legal time to Greenwich Mean Time and ended the extra hour Morocco had been using. An 18 September press release from the Head of Government's office repeated the same 02:00 switch.
IANA recorded the new rule in tzdata 2026c, released 8 July 2026: Morocco "move[s] back to permanent UTC, without daylight saving time transitions, on 2026-09-20 at 02:00." I rechecked that in Python's tzdata 2026.6 (IANA 2026f), after zoneinfo.reset_tzpath(()) so the package — not the OS copy — is what ZoneInfo reads.
from datetime import datetime, timezone from zoneinfo import ZoneInfo, reset_tzpath reset_tzpath(()) z = ZoneInfo("Africa/Casablanca") for utc in ( datetime(2026, 9, 20, 0, 59, 59, tzinfo=timezone.utc), datetime(2026, 9, 20, 1, 0, 0, tzinfo=timezone.utc), ): print(utc.isoformat(), "->", utc.astimezone(z).isoformat()) 2026-09-20T00:59:59+00:00 -> 2026-09-20T01:59:59+01:00 2026-09-20T01:00:00+00:00 -> 2026-09-20T01:00:00+00:00 That is 02:00 local UTC+1 falling back to 01:00 UTC+0. Afterward, Africa/Casablanca stays at UTC+0; this dataset has no later transitions in 2026 or 2027.
The UTC instant you stored is now an hour off
Release 2026c is the first that includes the 20 September change. Older data (2026b or earlier) would still have treated mid-October 2026 in Casablanca as UTC+1: the 2026 Ramadan fallback had already ended on 22 March, and nothing in those rules ended UTC+1 later that year. If you had converted "15 October 2026, 10:00 in Casablanca" to UTC in June, you would have stored 09:00 UTC. With current tzdata, that civil time is 10:00 UTC. The old instant now displays as 09:00 in Casablanca.
casa = ZoneInfo("Africa/Casablanca") wall = datetime(2026, 10, 15, 10, 0, tzinfo=casa) print("stored wall ->", wall.isoformat()) print("correct instant ->", wall.astimezone(timezone.utc).isoformat()) stale = datetime(2026, 10, 15, 9, 0, tzinfo=timezone.utc) print("stale instant ->", stale.astimezone(casa).isoformat()) stored wall -> 2026-10-15T10:00:00+00:00 correct instant -> 2026-10-15T10:00:00+00:00 stale instant -> 2026-10-15T09:00:00+00:00 The meeting did not move. The legal clock in Casablanca did. A stored instant cannot follow a rule that had not been published yet.
This was already a moving target
The 2018–2026 arrangement was not year-round UTC+1 either. IANA models Africa/Casablanca in those years as UTC+1 except during Ramadan, when clocks fell back to UTC+0. In 2026 the transitions were:
- 15 February, 03:00 UTC+1 → 02:00 UTC+0
- 22 March, 02:00 UTC+0 → 03:00 UTC+1
Both match the same zoneinfo data. A standing 10:00 Casablanca meeting was 18:00 in Seoul on 1 February, 19:00 on 1 March, and 18:00 again on 1 April. Those dates move every year with the Islamic calendar, so hard-coding "+1 except in March" would have been wrong even before the September decree.
Another recent case: Paraguay
Paraguay's Law No. 7354 set official time to UTC−3. It takes effect on the first Sunday of October 2024, and was published in Gaceta Oficial No. 204 on 14 October 2024. In tzdata 2026f, America/Asuncion has no transitions after 6 October 2024 and is UTC−3 year-round, including July 2025; under the previous rules, mid-July was UTC−4. If you booked "15 July 2025, 09:00 in Asunción" in early 2024 and stored 13:00 UTC, current data shows that civil time as 12:00 UTC. The stale instant is 10:00 in Asunción — an hour late.
What to store instead
Keep the civil date and time, plus an IANA zone name, as the source of truth:
const meeting = { wall: "2026-10-15T10:00", timeZone: "Africa/Casablanca", }; Convert to an instant only when you need one — reminders, calendar math, a UI in another zone — and convert with up-to-date time zone data.
# wall time + IANA zone, converted only when you need an instant meeting_wall = "2026-10-15T10:00" meeting_zone = "Africa/Casablanca" instant = datetime.fromisoformat(meeting_wall).replace( tzinfo=ZoneInfo(meeting_zone) ).astimezone(timezone.utc) print(instant.isoformat()) # 2026-10-15T10:00:00+00:00 JavaScript's Temporal API uses the same split: a PlainDateTime is a wall clock, a ZonedDateTime attaches a named zone, and an Instant is a point on the UTC timeline. I did not run Temporal here (typeof Temporal is undefined in Node.js v24.22.1), but that is the model to aim for.
Two habits follow:
- Ship current tzdata, or the ICU / OS equivalent. A host still on 2026b would still treat October 2026 in Casablanca as UTC+1.
- When a government publishes a change, update the data and re-derive instants from the stored wall times. Do not edit a pile of UTC timestamps by hand and hope you found them all.
I use a small two-city overlap checker at https://time.wooooju.com when I want to see how a civil time lands in another city. The storage rule does not depend on that tool: save the wall clock and the IANA name, and convert with current tzdata only when you need an instant.
Sources
- Decree No. 2.26.530 (25 June 2026), Bulletin Officiel No. 7521 (29 June 2026): PDF, Secrétariat Général du Gouvernement; record in the Base de données juridiques (MMSP)
- Head of Government of Morocco, press release, 18 September 2026: Return to legal time on Greenwich Mean Time
- IANA Time Zone Database, release 2026c (8 July 2026); NEWS and
africain tzdb 2026f - Python
zoneinfo(verified withtzdata2026.6 / IANA 2026f) - Paraguay, Law No. 7354: Gaceta Oficial No. 204, 14 October 2024; law text (PDF); IANA
southamericain tzdb 2026f - MDN, Temporal
