ruslanskorb/RSDayFlow

wrong selected date

Closed this issue · 4 comments

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

Hi @onuryoeruek!

What do you mean by the date object contains the date 02.05.?

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...

@onuryoeruek Could you provide a screenshot?

@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.