question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nowIndicator is not updated when the timeZone changes

See original GitHub issue

I’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:open
  • Created 3 years ago
  • Reactions:14
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
thaoulacommented, Feb 7, 2021

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

5reactions
ehahn9commented, Nov 7, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found