Skip to content

Commit 17c509b

Browse files
committed
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 ietf-tools#2531 and ietf-tools#2534.
- Legacy-Id: 15368
1 parent b212599 commit 17c509b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ietf/meeting/models.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
countries = pytz.country_names.items()
3434
countries.sort(lambda x,y: cmp(x[1], y[1]))
3535

36-
timezones = [(name, name) for name in pytz.common_timezones]
36+
timezones = []
37+
for name in pytz.common_timezones:
38+
tzfn = os.path.join(settings.TZDATA_ICS_PATH, name + ".ics")
39+
if not os.path.islink(tzfn):
40+
timezones.append((name, name))
3741
timezones.sort()
3842

3943

0 commit comments

Comments
 (0)