wrong selected date
Closed this issue · 4 comments
Deleted user commented
Hello,
the datePickerView(_ view: RSDFDatePickerView, didSelect date: Date)-Method is wrong..
if I select 02.05.2019 the date object contains the date 02.05.
02.05. -> 03.05
...
I use the latest pod version 1.7.1
ruslanskorb commented
Hi @onuryoeruek!
What do you mean by the date object contains the date 02.05.
?
Deleted user commented
if I print the selected date inside this method I always get the wrong date..
If I select 02.05 -> I get the date 03.05. and so on...
ruslanskorb commented
@onuryoeruek Could you provide a screenshot?
ruslanskorb commented
@onuryoeruek RSDFDatePickerView
displays dates in the time zone of the provided calendar. In turn, Xcode prints Date
in GMT. Use DateFormatter
with the correct locale
to print the right value. You can see how to do it here.