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 does not work when I add dates that are more than 28 days away? #19

Closed
PrabalSaxena01 opened this issue Feb 21, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@PrabalSaxena01
Copy link
Contributor

I tried to Add countdown to dates 21st April. 2024. but it showed 28 days away. Same happen when I started a countdown for 21st June.

@smarj
Copy link

smarj commented Mar 20, 2024

Looks like a fix is coming, but no release yet. What worked for me was taking the new fix and modifying my .obsidian/plugins/widgets/main.js file.

There's a section of code with duration.days(). I changed that to Math.floor(duration / 86400000). It's working out to at least 153 days now. I got the bit to change from a closed issue (#17), but that fix now breaks the whole thing. This code modified from the latest PR seems to be working, though.

@rafaelveiga
Copy link
Owner

I've just pushed release 0.0.7 with @PrabalSaxena01 fixes, which should fix the countdown issues

@rafaelveiga
Copy link
Owner

I'll left the discussion open here if any bugs appear in this 0.0.7 release for the countdown widget

@rafaelveiga rafaelveiga added the bug Something isn't working label Mar 23, 2024
@rafaelveiga
Copy link
Owner

Seems that no issues appeared on the 0.0.7 release. Closing this issue for now. If you enconter a bug with this widget, please open a new issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants