-
Notifications
You must be signed in to change notification settings - Fork 40
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
checkDate in MXLCalendarEvent #17
Comments
So if the current date/time is 1PM on June 10th and the event is 10AM on June 11th, |
Hi Kiran, Sent from my iPhone
|
I can reproduce this with events with a yearly repeat frequency without end date. The logic inside checkDate (line 486 in MXLCalendarEvent.m) seems to be missing a validation on the date itself. it returns YES just for having no exception on the current date. In my opinion the given day has to be matched with the event date. If I'm right with this, i guess this is happening to monthly frequency and maybe for the weeklies too. |
Thanks for reporting this! @Jaikant Did you say that you'd already implemented a solution? If so, could you submit a pull request with your changes? |
Note that this issue is closely related to issue #5 (daylight saving time issue), that I opened on April 2014 (still open). In order to solve the problem completely, you must take into account simultaneously both the timezone AND the daylight saving time. Unfortunately, MXLCalendarManager can not be used reliably until this issues are properly solved. |
In my application I found an issue, wherein the method checkdate would return true for an event, even if it didn't exist for a particular date, If the event was less than 24 hours apart from the date selected.
I used the solution from here, which fixed it for me:
http://stackoverflow.com/questions/12257937/get-number-of-days-between-two-nsdate-dates-in-a-particular-timezone
If this is not a real issue, then please close this.
The text was updated successfully, but these errors were encountered: