-
Notifications
You must be signed in to change notification settings - Fork 114
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
headerString(_ date: Date) offsets month by -1 #109
Comments
@zeeshanz did you find a fix for this? I'm dealing with a similar issue. |
@TyJPhillips Here is how I am doing it. The 'fix' is the function
And the
|
@zeeshanz Thank you so much! I'll see if this helps with my issue! |
Any update? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calls to
self.calendarView.goToPreviousMonth()
,self.calendarView.goToNextMonth()
andself.calendarView.setDisplayDate(Date(), animated: true)
calls protocolfunc headerString(_ date: Date) -> String?
twice and offsets the month by -1 every time, meaning the month is offset twice to -2.The sample code you provide is using an older version of KDCalendar which works fine and doesn't call
headerString()
. But newer version of KDCalendar requires to call it.This is January. I call
goToPreviousMonth()
and it changes the header to February, but then immediately jumps back to January while displaying days of February.Similarly, when I sent it current Date(), it sets header to December while showing days of January.
The text was updated successfully, but these errors were encountered: