vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
964 stars 82 forks source link

Is is possible to lock the nowindicator to UTC or diffrent timezone? #215

Open tbbw opened 5 months ago

tbbw commented 5 months ago

Is it possible to lock the nowIndicator after a diffrent timezone than the browsers own timezone?

Example of use cases would be if i travel abroad or we as a team stick with a UTC timezone if we work in diffrent timezones? Since 5pm "here" is not 5pm "there" kind of thing.

vkurko commented 5 months ago

Hello,

Event Calendar does not currently support any time zones. Namely, a setting indicating the time zone would be useful in this case. FullCalendar also has a now setting, which is considered by some users to be a setting that should also affect the position of the now indicator. Perhaps the Event Calendar needs to implement exactly this behavior.

tbbw commented 5 months ago

Interesting so i'm not the only one that wished this was a thing.

My thought was if the nowindicator had a timezone option where if it's unset it defaults to the browsers timezone like it is now but if it's set you can specify a spesific timezone that you wish it would use. This way it would not break compability with something people already made and in use.

vkurko commented 5 months ago

Yes, the time zone setting is, in my opinion, the most suitable option for this case. This timeZone option is available in FullCalendar. Perhaps the time has come to implement it in the Event Calendar and initially so that it affects only the now indicator.

tbbw commented 5 months ago

This would be a good first step.

tbbw commented 3 months ago

Is this on the roadmap or still in it needs more thought?

vkurko commented 3 months ago

Unfortunately, there is no roadmap yet. I haven't been able to devote enough time to the project in recent months. I hope to have that time in the coming months and implement some new features.