Skip to content

Commit

Permalink
DST: fix condition
Browse files Browse the repository at this point in the history
Before this we were getting CEST when it should have been CET

Signed-off-by: Pedro Pinto Silva <[email protected]>
  • Loading branch information
pedropintosilva authored and Darshan-upadhyay1110 committed Oct 31, 2024
1 parent 7ee8b8f commit 584b098
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion layouts/shortcodes/dst.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
return datetdy;
}
var datetdy = dt.getTimezoneOffset();
datetdy = datetdy < 0 ? datetdy = ' CEST' : datetdy = ' CET';
// To test if you are not in Central Europe:
// CEST is GMT
// datetdy = new Date('August 19, 2024 17:00:00 GMT');;
// CET is GMT+1
// datetdy = new Date('November 19, 2024 17:00:00 GMT+1');;
datetdy = datetdy < 0 ? datetdy = ' CET' : datetdy = ' CEST';
return datetdy
}
</script>

0 comments on commit 584b098

Please sign in to comment.