Calendar's "today" date is not updated
See original GitHub issueThis is a simple issue so I though of not creating any demo.
If you have the calendar open in week view in an application, and you visit the application the next day, it shows the current date as the day before (or the date you visited application the last time). While the current time marker is somehow at the right place and the actual date.
It makes sense though, as the current time update code runs in an interval function so it will have proper value. It also makes sense that current date (today) is calculated only once and will not update until the view refreshes.
I’m not sure if there can be any fix for this but one solution that may work would be to check current date while updating the current time. And if any change is required then update the current date.
For people facing same issue would be to force update the view which will allow FC to recalculate everything (simple way would be to provide refresh button for users to handle it manually).
Note: I have not tested it out in day/month views. And week view here refers only to agendaWeek
view.
My assumption is the problem will stand in all kind of views.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:11 (1 by maintainers)
Top GitHub Comments
Any update on this? Still an issue with Fullcalendar 5.
Edit: in the meanwhile, I found this workaround, which is not too ugly:
I would be also interested in a workaround. I can handle the timer in the app logic, but is there a method in the public fullcalendar API that would trigger the update?