Support for timezones #24
Replies: 2 comments 1 reply
-
You can overwrite both the start and end timestamps of each event in the I think adding this to
You should do this for the You could get the user directly from the Having said that, perhaps some type of timezone support is required in the library. Right now, not even the |
Beta Was this translation helpful? Give feedback.
-
It was an easy fix, I have just released 1.5 which makes this a little easier for you. If you See the documentation, too. |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm currently displaying the time of certain events using
$event->displayTime();
but as the users accessing the calendar all have different timezones, this can get confusing at times.Inside my actual nova resource, I use this to display the time in the users timezone,
DateTime::make('Start At')->sortable()->required()->displayUsing(function ($value) use ($request) { return $value ? Carbon::parse($value)->setTimezone($request->user()->timezone)->toDateTimeString() : $value; }),
Would it be possible (or it maybe already is and I just missed it) to show the times in the calendar in a similar fashion?
Beta Was this translation helpful? Give feedback.
All reactions