-
Story
-
Resolution: Done-Errata
-
Major
-
rhel-8.8.0
-
anaconda-33.16.10.1-1.el8
-
rhel-sst-installer
-
ssg_front_door
-
15
-
0
-
False
-
-
Yes
-
None
-
The documentation is the same as in https://issues.redhat.com/browse/RHEL-13151. This BZ is basically a duplicate of it.
-
Rejected
-
-
All
-
None
Description of problem:
A customer is wondering why they can't use TZ like ROK, ROC and CET and Brazil/East.
Has it been deliberately excluded?
Version-Release number of selected component (if applicable):
anaconda-33.16.8.9
How reproducible:
Always
Steps to Reproduce:
add into the kickstart:
timezone --utc ROK
Actual results:
WARNING org.fedoraproject.Anaconda.Modules.Timezone:DEBUG:anaconda.modules.timezone.timezone:Timezone is set to ROK.
WARNING org.fedoraproject.Anaconda.Modules.Timezone:WARNING:anaconda.modules.timezone.installation:Timezone ROK set in kickstart is not valid, falling back to default (America/New_York).
Additional info:
pyanaconda/modules/timezone/installation.py:
61 def _correct_timezone(self):
62 """Ensure the timezone is valid."""
63 if not is_valid_timezone(self._timezone):
64 # this should never happen, but for pity's sake
65 log.warning("Timezone %s set in kickstart is not valid, "
66 "falling back to default (America/New_York).", self._timezone)
67 self._timezone = "America/New_York"
pyanaconda/timezone.py:
151 def is_valid_timezone(timezone):
152 """
153 Check if a given string is an existing timezone.
154
155 :type timezone: str
156 :rtype: bool
157
158 """
159
160 etc_zones = ["Etc/" + zone for zone in ETC_ZONES]
161
162 return timezone in pytz.common_timezones + etc_zones
$ python3 -c "import pytz; print(pytz.common_timezones)" |& grep -c ROK
0
$ python3 -c "import pytz; print(pytz.all_timezones)" |& grep -c ROK
1