Skip to content

Commit

Permalink
fix EOF and m2 code standard
Browse files Browse the repository at this point in the history
  • Loading branch information
ajzkk committed Oct 18, 2023
1 parent 54bdc1e commit c5b3e8c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

function calculateCountdown() {
const currentDateTime = new Date();
const expiresAtDateTime = new Date("<?= $block->getChargeExpiresAt(); ?>");
const expiresAtDateTime = new Date("<?= $block->escapeHtml($block->getChargeExpiresAt()) ?>");
const difference = expiresAtDateTime - currentDateTime;
const hours = Math.floor((difference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60));
Expand Down Expand Up @@ -73,4 +73,4 @@

updateCountdown()
})()
</script>
</script>

0 comments on commit c5b3e8c

Please sign in to comment.