Skip to content
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 date in cellState but correct in cellState.text #685

Closed
vahids opened this issue Jan 21, 2018 · 2 comments
Closed

Wrong date in cellState but correct in cellState.text #685

vahids opened this issue Jan 21, 2018 · 2 comments

Comments

@vahids
Copy link

vahids commented Jan 21, 2018

I'm using version 7.1.5 -> JTAppleCalendar (7.1.5)

calendar is correct but when I select a date, the selected date has a wrong date. It's seems like to have a day before of correct date.

I add a break point on configCell delegate. the cellState.date was wrong there too but cellState.text showing correct date.

datepicker

@patchthecode
Copy link
Owner

i think your issue is this one
#252

let me know

@vahids
Copy link
Author

vahids commented Jan 21, 2018

You're right!
Thanks ;-)

let formater = DateFormatter()
formater.dateStyle = .long
print(formater.string(from: date))

this way to print show the correct date.

@vahids vahids closed this as completed Jan 21, 2018
@vahids vahids changed the title Wrong date in cellState but current cellState.text Wrong date in cellState but correct in cellState.text Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants