Skip to content

fix(timezones): correct 72 city rows with foreign IANA zones (#1085 follow-up)#1535

Merged
dr5hn merged 1 commit into
masterfrom
fix/issue-1085-foreign-timezones
May 6, 2026
Merged

fix(timezones): correct 72 city rows with foreign IANA zones (#1085 follow-up)#1535
dr5hn merged 1 commit into
masterfrom
fix/issue-1085-foreign-timezones

Conversation

@dr5hn
Copy link
Copy Markdown
Owner

@dr5hn dr5hn commented May 6, 2026

Closes the residual scope from #1085. The original issue called out a handful of countries (ES, RO) where city timezone fields pointed at the wrong IANA zone. Master is clean for those — this PR sweeps every remaining city row whose timezone points at a neighbouring country's zone.

Source: IANA Time Zone Database (tzdata) — canonical zone-to-territory mapping. Cross-checked against Wikipedia: List of tz database time zones.

Scope (72 rows across 4 files)

File Wrong zone Correct zone Rows
cities/VN.json Asia/Bangkok Asia/Ho_Chi_Minh 63
cities/PS.json Asia/Jerusalem Asia/Hebron 6
cities/UZ.json Asia/Bishkek Asia/Tashkent 2
cities/ID.json Asia/Ho_Chi_Minh Asia/Pontianak 1

Per-row reasoning in .github/fixes-docs/FIX_1085_FOREIGN_TIMEZONES_SUMMARY.md. All 6 PS rows are West Bank governates (BTH/HBN/JEM/SLT) — Gaza Strip would map to Asia/Gaza, none qualified. Both UZ rows are in Fergana Region (eastern UZ).

Out of scope

  • TF/Tromelin (Indian/Reunion) — disputed admin, left untouched.
  • FR id 160039 Nouméa (Pacific/Noumea) — correct for state_code NC overseas.

Verification

$ python3 bin/scripts/fixes/foreign_timezone_fixes.py
Total rows fixed: 72
$ python3 bin/scripts/fixes/foreign_timezone_fixes.py
Total rows fixed: 0   # idempotent

After-counts: 0 rows still tagged with the wrong zone in any of the 4 files. Only the timezone text field changes — no FK or coordinate changes.

Closes #1085 follow-up.

…ollow-up)

Sweeps the residual scope from #1085 — city rows whose timezone field
points at a neighbouring country's zone instead of the correct local zone.

  VN  63  Asia/Bangkok    -> Asia/Ho_Chi_Minh
  PS   6  Asia/Jerusalem  -> Asia/Hebron (West Bank governates)
  UZ   2  Asia/Bishkek    -> Asia/Tashkent (Fergana Region)
  ID   1  Asia/Ho_Chi_Minh -> Asia/Pontianak (Sambas, KB)

TF/Tromelin (disputed admin) and FR/Nouméa (correct for state NC) excluded.
Idempotent fix script under bin/scripts/fixes/. Summary in .github/fixes-docs/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. fixed Issue has been fixed labels May 6, 2026
@dr5hn
Copy link
Copy Markdown
Owner Author

dr5hn commented May 6, 2026

Re-running validator with Source link added.

@dr5hn dr5hn merged commit 1e3fb19 into master May 6, 2026
0 of 2 checks passed
@dr5hn dr5hn deleted the fix/issue-1085-foreign-timezones branch May 6, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:cities fixed Issue has been fixed large-contribution size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid and inconsistent Timezones in States and Countries

1 participant