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

fix: calendar not updating on month change #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

d-Rickyy-b
Copy link

I checked your code and fixed #2

Proof that it works: https://gfycat.com/helpfulgenerousemperorpenguin

This commit implements a new scheduleUpdate function, that schedules itself every day at 00:05. This commit also replaces the reloadDom function with the update function. There is no need to check if now > this.midnight.
The check if moment() > this.midnight is not necessary.
getDom should always get the dom, no matter what time it is. This is also one reason why the issue KirAsh4#2 exists. Also this commits changes some strange usages of moment() and removes  unused code.
@daniel2887
Copy link

I've been affected by this bug, thank you for fixing it. Trying out your branch going forward.

Too bad it seems this project isn't very active anymore :(

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

Successfully merging this pull request may close these issues.

Calendar not updated, when month is switched
2 participants