forked from logbon72/angular-material-datetimepicker
-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Nice to see this project is still being maintained so many years later :D
One of our users is in GMT-8 and was handling GMT+2 dates in the calendar. Due to the comparison being done in https://github.com/beenote/angular-material-datetimepicker/blob/gh-pages/js/angular-material-datetimepicker.js#L454-L486 this resulted in not all expected dates be shown on the calendar.
I can produce a minimal example if it is necessary, but I noticed something about the quoted code section. Why is it not just using moment().isAfter()
? This should be much safer as time zones should probably be correctly respected in that method.
Metadata
Metadata
Assignees
Labels
No labels