-
Notifications
You must be signed in to change notification settings - Fork 285
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
today private variable should not be static #165
Comments
This was referenced Dec 22, 2015
I've patched this locally so that function today() {
return moment().startOf('day');
} ... return moment(date).startOf('day').yearDay() >= today().yearDay(); etc. The added benefit of this is if you're using moment-timezone and you're setting a default timezone this will cover any possible race-conditions where the timezone is set after the |
This has been fixed in v0.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When the date changes (at midnight) it won't update. This is because it only gets initialized once.
Source: https://github.com/ChiperSoft/Kalendae/blob/master/src/moment.ext.js#L19
The text was updated successfully, but these errors were encountered: