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

Countdown Timer Displaying -18275 Days for March 9th 2020 #15

Open
JCleary682 opened this issue Jan 13, 2020 · 1 comment
Open

Countdown Timer Displaying -18275 Days for March 9th 2020 #15

JCleary682 opened this issue Jan 13, 2020 · 1 comment

Comments

@JCleary682
Copy link

Hi

Unsure if this is a result of an incorrect config by myself, however the module is displaying -18275 Days for the 9th March 2020. Please see my config below

{
module: 'MMM-CountDown',
position: "bottom_left",
config: {
// See configuration options
event: "Dissertation Due",
date: 2020-03-09,
showHours: false,
showMinutes: false,
showSeconds: false,
}
},

Thanks
James

@icecoldsnake
Copy link

icecoldsnake commented Mar 7, 2020

It took awhile to get through this, and I'm a noob with under 10 hours in js, but I had to make a few changes to the MMM-CountDown.js file in the module's folder.

At the top of the file, change
defaults: { event: "New Millenium:", date: "3000-01-01",

to (insert your event date in place of YYYY-MM-DD):
defaults: { event: "New Millenium:", date: "YYYY-MM-DD",

next go down to lines 35-37 and update them to say
var today = new Date().getTime(); var target = new Date(this.config.date); var timeDiff = target - today;

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

2 participants