Skip to content

Commit

Permalink
Merge pull request canonical#13774 from canonical/WD-10580-time-zone-…
Browse files Browse the repository at this point in the history
…on-schedule-page-no-longer-selectable

WD-10580-time-zone-on-schedule-page-no-longer-selectable
  • Loading branch information
jpmartinspt authored Apr 22, 2024
2 parents cfaf428 + 81f5521 commit 405ecfb
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions templates/credentials/schedule.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,11 @@ <h1 class="p-heading--2">
</section>

<script>
{
%
if timezone and timezone != "" %
}
{% if timezone and timezone != "" %}
const timezone = "{{ timezone }}";
{
%
else %
}
{% else %}
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
{
% endif %
}
{% endif %}
const timezoneInput = document.querySelector("#exam-timezone");
const allTimezones = Intl.supportedValuesOf('timeZone');
allTimezones.map((tz) => {
Expand Down

0 comments on commit 405ecfb

Please sign in to comment.