Skip to content

Commit

Permalink
Fix event date
Browse files Browse the repository at this point in the history
  • Loading branch information
MXJosueDev committed Dec 18, 2024
1 parent ca174da commit c245d27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/js/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ document.addEventListener('DOMContentLoaded', function () {

function countdown() {
const currentDate = new Date();
// const eventDate = new Date(`${currentDate.getFullYear()}-12-25T00:00:00`);
const eventDate = new Date(
`${currentDate.getFullYear()}-12-18T09:44:00`
);
const eventDate = new Date(`${currentDate.getFullYear()}-12-25T00:00:00`);
// const eventDate = new Date(
// `${currentDate.getFullYear()}-12-18T09:44:00`
// );

if (eventDate <= currentDate) {
countdownWrapper.classList.add('happy');
Expand Down

0 comments on commit c245d27

Please sign in to comment.