nowIndicator is not updated when the timeZone changes
See original GitHub issueI’m trying to achieve nowIndicator
displaying the correct current time when the timeZone
changes. Luxon plugin is used to work with named timezones.
Naive approach of just updating the timezone prop does nothing. Neither trying to update the now
property with the ISO string of the current time in the new timezone. Judging by the code, and as I’ve seen in some other discussion here now
property is not changeable at all currently.
It would be great if nowIndicator
was timezone-aware.
Repro code here: https://codesandbox.io/s/zen-brook-4gtll?file=/src/DemoApp.jsx
Issue Analytics
- State:
- Created 3 years ago
- Reactions:14
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Fullcalendar Now() Indicator positioned wrongly
the Now() indicators is not positioned properly. I have a JSFiddle to show the issue. In this Fiddle I would expect the indicator...
Read more >Docs Now Indicator - FullCalendar
You can display a marker that represents the exact current time in both TimeGrid view and Timeline view. nowIndicator. Whether or not to...
Read more >All You Need to Know about a FullCalendar View Module
$options['nowIndicator'] = TRUE; // Show calendar in user account's timezone. $options['timeZone'] = date_default_timezone_get(); ...
Read more >@fullcalendar/moment-timezone | Yarn - Package Manager
v6.0.1 (2022-12-20). Standard/premium: FIX: Property type does not exist on type ViewApi (#7056); FIX: Expose globalLocales publicly for importing on-demand ...
Read more >Fullcalendar Timezone Examples by Keenthemes
Local JS Timezone Example. Fullcalendar's example with timezones with local JS logic. For more info on server side logic, please visit the official ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @acerix,
Do you know of any workaround to manually force the now indicator to redraw as work around?
Also, is there a fix for this issue planned?
Regards, Tarek
Does anyone have a workaround? I too have tried manually updating now, fn or Date), nowIndicator, etc. Once set initially, seems to be no way to move the now indicator based on the timezone. Pretty much makes nowIndicator unusable for tz-aware applications?