-
Notifications
You must be signed in to change notification settings - Fork 79
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
The dates appear under the incorrect days in the datetime picker #48
Comments
However, the date is correct in the picker in the live demos here: https://www.npmjs.com/package/angularjs-datetime-picker |
This seems related to US “start weeks with Sunday” vs. Europe “start weeks with Monday”. Anyone know of a fix? @nehay578 |
This is kind of a critical bug...anyone looked at it? |
I did some investigation, angular/angular.js#11900, problem is that angular and javascript disagree on which day is 0. JavaScript Sunday=0, Angular $locale says Monday=0. So...if you change line 160 like this it fixes the problem:
|
+1 |
As seen in the screenshot, today's date is 25th Sep, which is Monday, but the datetime picker shows 25th Sep under tuesday.
The text was updated successfully, but these errors were encountered: