Skip to content

Commit

Permalink
Merge pull request #1067 from GSA/notify-admin-1049
Browse files Browse the repository at this point in the history
fix timezones
  • Loading branch information
ccostino authored Jan 8, 2024
2 parents d18d243 + f43fd3e commit 106a443
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/main/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,15 +1235,20 @@ class ChangeNameForm(StripWhitespaceForm):
new_name = GovukTextInputField("Your name")


# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
class ChangePreferredTimezoneForm(StripWhitespaceForm):
def __init__(self, *args, **kwargs):
super(ChangePreferredTimezoneForm, self).__init__(*args, **kwargs)
self.new_preferred_timezone.choices = [
("America/Puerto_Rico", "America/Puerto_Rico"),
("US/Eastern", "US/Eastern"),
("US/Central", "US/Central"),
("US/Mountain", "US/Mountain"),
("US/Pacific", "US/Pacific"),
("US/Alaska", "US/Alaska"),
("US/Hawaii", "US/Hawaii"),
("US/Aleutian", "US/Aleutian"),
("US/Samoa", "US/Samoa"),
]

new_preferred_timezone = GovukRadiosField(
Expand Down

0 comments on commit 106a443

Please sign in to comment.