Skip to content

Commit

Permalink
djlint is not very intelligent. Use with extreme caution
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigyanghosh30 committed Apr 20, 2024
1 parent cfaf428 commit 81f5521
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 81f5521

Please sign in to comment.