How Can I Do A Timezone Adjustment While Using The Final Countdown Plugin?
I have put together a countdown with the help of the jQuery.countdown plugin. The goal is to count the from the current date until this year's Christmas. The problem Due to the fac
Solution 1:
Disclaimer: I have not tested this.
My theory is your computer is not adding daylight savings time, but moment.js is.
let deadLine = moment.tz('2021-12-25 00:00:00', 'Europe/Bucharest');
deadLine.utc(); //add this to turn off dst
doCountDown('#count_down', deadLine.toDate());
Post a Comment for "How Can I Do A Timezone Adjustment While Using The Final Countdown Plugin?"