gh-137976: Explicitly exclude localtime from available_timezones (#138012)

* fix: available_timezones is reporting an invalid IANA zone name

* 📜🤖 Added by blurb_it.

* correct rst format for backticks

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
This commit is contained in:
Nicholas Tindle 2025-09-18 11:32:14 -05:00 committed by GitHub
parent d641c41c88
commit 0f27e10204
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 1 deletions

View file

@ -177,6 +177,10 @@ def valid_key(fpath):
# posixrules is a special symlink-only time zone where it exists, it
# should not be included in the output
valid_zones.remove("posixrules")
if "localtime" in valid_zones:
# localtime is a special symlink-only time zone where it exists, it
# should not be included in the output
valid_zones.remove("localtime")
return valid_zones