-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Getting previous date in method didSelect date #531
Comments
Use NSDateFormatter to convert your date to string, then print the string instead. |
Hi @WenchaoD , thank you for your reply. Yes, I can use NSFormatter and do that. But, I have my data structure based on Date or date.timeIntervalFrom1970 With NSDateFormatter - I have to format it twice once from date to string and then again string to date. Hence, I was asking why the method didSelect returns a different date? Is this because of a recent change that I can see or we can provide a customization point? Thank you! |
@raghvendra I still don't get what does |
@WenchaoD , Thank you for your reply. ok. If I use NSFormatter - I get the date as Dec 28, but when I print that date object it has some different value. |
Ok, I figured out what was the issue that caused it. The commit with sha ** d3a4531**, changed earlier implementation. The commit description says that - "Local timezone is better" |
How to solve this issue. I didn't get the point. |
Hello,
I have upgraded the library to the latest changes, and when I print the date which user has selected it is showing previous day.
For example when I select Dec 26, the date that it prints is 2016-12-25 18:30:00 +0000
Earlier it used to work correctly.
May I know why it is happening the way it is?
Thanks!
The text was updated successfully, but these errors were encountered: