-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Today date does not update after changing device date #600
Comments
Reverted setToday and created new method based on setToday to fix: WenchaoD#600
Hi @h-bomb |
Hi @WenchaoD - yes, that is what I did in my controller, but had an issue with
needed to change to (note the removal of the logical not (
Now I'm currently having a mysterious issue with our release build vs. our debug build - when running the release build, after changing the date and returning to the app, all of the days get highlighted with the today color. This doesn't occur in the debug build, though. Have you ever seen anything like this? Trying to debug now... |
(Sorry for the accidental close / re-open @WenchaoD.) I confirmed that the release build issue I mentioned above does occur in your latest Swift sample app. Steps to reproduce:
Result The current date is selected with a blue selection circle, but all of the other days are selected with a red selection circle: Expected The current date should selected with a blue selection circle and all of the other days should not have a selection circle around them. Note: If you swipe to another month and swipe back, the issue resolves itself. |
@WenchaoD - I believe I have a solution to the second issue above. After our QA team confirms the fix, I'll post my solution. |
…Release build only) Fix for all calendar days set as today title color in current month (Release build only) - second issue reported in: WenchaoD#600
@WenchaoD - the solution in the commit above fixed the Release build issue. |
I see. I've found a simpler solution. It works for me. |
If you change the device's date then return to the calendar, today (day color and/or selection) does not update.
Device(s): All
FSCalendar version: current (v2.7.2) / master branch
Occurs in sample project: Yes
Xcode version: 8.2.1
Steps to reproduce:
Result:
The calendar does not update today's date (selection or color).
Expected:
The calendar should always reflect the correct date for today. If today was selected before putting the app in background, the correct today day should be selected and today color updated. If a different date was selected before putting the app in the background, only the today day color should be updated (the last selected date should still be selected, but the selection color should be the non-today color.)
The text was updated successfully, but these errors were encountered: