Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong count 1 more month is added #44

Open
AldoFerrari opened this issue Feb 20, 2024 · 0 comments
Open

wrong count 1 more month is added #44

AldoFerrari opened this issue Feb 20, 2024 · 0 comments

Comments

@AldoFerrari
Copy link

AldoFerrari commented Feb 20, 2024

Hello ;-) I am counting down from today (20 february 2024) till 14 september 2024 at 11:00 but the result it is:
7 MONTHS, 22 DAYS, 11 HOURS, 10 MINUTES

but the correct one should be:
6 MONTHS, 22 DAYS, 11 HOURS, 10 MINUTES

countdown( new Date(2024, 9, 14, 11), function(ts) { document.getElementById('days').innerHTML = ts.toString(); }, countdown.YEARS|countdown.MONTHS|countdown.DAYS|countdown.HOURS|countdown.MINUTES|countdown.SECONDS);

even changing to days:
countdown.DAYS|countdown.HOURS|countdown.MINUTES|countdown.SECONDS it give back
236 DAYS, 11 HOURS, 6 MINUTES
instead of
206 DAYS, 11 HOURS, 6 MINUTES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant