-
Notifications
You must be signed in to change notification settings - Fork 810
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
Wrong times attached to dates after update to 6.0.5 #222
Comments
OK. hmm. let's discuss on this more. Here are my thoughts on this. Let me know where my ideas can be improves. My possibly flawed ideas.... possibly.. :)The calendar deals with dates. I have not coded anything in the calendar to handle times. This will be able to handle times, because i believe the this library specifically deals with times. These were my initial thoughts on this. Can you let me know how you're using times or what I can do to improve the ideas? |
Thanks for a quick response. I agree that this is a calendar and it's purpose to return dates not time. How it was working before in 6.0.2User passes calendar in local timezone -> didSelectDate method has date parameter with selected date and midnight time in local timezone Current logic:User passes calendar in local timezone -> didSelectDate method has date with selected date and midnight time in local timezone I think returned time should be consistent, like it was before. In my app I'm storing all dates in CoreData in UTC without time (with midnight time). But, I think using your calendar (which is really good by the way) users expect having midnight time returned when they are selecting date in a calendar (at least that's what I expected :) ) |
@deniszhukov understood. Your argument makes sense. |
Behavior change: JTAppleCalendar should not honor the time zones of the calendar instance passed into it. |
@deniszhukov i have made a change to the code. Can you let me know if it is working for you? You can change your the data in your pod file to be:
then do a |
I verified it. Works perfectly. |
Alright. this will be added in the next update. |
Hi Jay,
After updating from 6.0.2 to 6.0.5 I started getting wrong time in dates.
I think that this is connected to this issue
#210
I'm using calendar in UTC in configureCalendar method.
Before I was getting UTC dates with midnight time, which I think is the expected behavior.
Now, didSelectDate returns date with 7:00 UTC time.
I noticed that error because I had logic that was bound to differences between dates, which got broken, because of time difference.
The text was updated successfully, but these errors were encountered: