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

Calendar showing previous month for current page, but current page in stack has the correct month. #566

Closed
mcdolejt opened this issue Jan 26, 2017 · 3 comments

Comments

@mcdolejt
Copy link

This just started happening in the past week, the calendar is showing the previous month. You can see in the stack below that the current page is 2017-01-01 06:00:00 utc, but it is showing the prior month. I have tried setting the current page in view did load, but that does not appear to work.
screen shot 2017-01-26 at 4 03 55 pm

  • A brief bug description = showing previous month
  • Stack trace.
    screen shot 2017-01-26 at 3 56 54 pm
  • Integration method = cocoapods)
  • Full steps to reproduce.
  • Device modal and iOS version= iPhone 7 10.0
  • Xcode version = Xcode 8.2.1
  • FSCalendar version = FSCalenda 2.7.1
  • Appears to work fine in demo project
@dapeng313
Copy link

This issue is from local timezone and UTC time issue.
FSCalendar.currentPage gets current local date and time.
But it returns as UTC time. So If you convert currentPage for perfect operation.

@mcdolejt
Copy link
Author

@dapeng313 Thanks. I can see how that. Do you have a suggestion on how to handle that conversion?

@IOSDeveloperProgrammer
Copy link

Hi @mcdolejt i having same problem. please help me

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

3 participants