Modified the list of timezones available when setting a meeting timezone so as to not show timezones that are links. (Also edited the 102 meeting timezone in the database to avoid this). Fixes issues #2531 and #2534.
- Legacy-Id: 15368
This commit is contained in:
parent
b212599b09
commit
17c509b19b
|
@ -33,7 +33,11 @@ from ietf.utils.models import ForeignKey
|
|||
countries = pytz.country_names.items()
|
||||
countries.sort(lambda x,y: cmp(x[1], y[1]))
|
||||
|
||||
timezones = [(name, name) for name in pytz.common_timezones]
|
||||
timezones = []
|
||||
for name in pytz.common_timezones:
|
||||
tzfn = os.path.join(settings.TZDATA_ICS_PATH, name + ".ics")
|
||||
if not os.path.islink(tzfn):
|
||||
timezones.append((name, name))
|
||||
timezones.sort()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue