Enhance timezone support across application

- Introduced a `SetTimezone` middleware to dynamically apply user-specific timezones.
- Added a `timezone chooser` component for users to select their timezone.
- Enhanced date and time display in views with `asDate`, `asTime`, and `asDateTime` methods.
- Updated `AppServiceProvider` to leverage `preventLazyLoading` in local environments and set custom `Carbon` instance for dates.
- Expanded configuration with `user-timezone`.
- Integrated timezone support into meetups and events for consistent scheduling.
This commit is contained in:
HolgerHatGarKeineNode
2025-11-23 19:21:19 +01:00
parent cdf8744883
commit ca9cd9b875
13 changed files with 134 additions and 20 deletions

View File

@@ -100,16 +100,18 @@ class extends Component {
<flux:table.cell>
@if($meetup->nextEvent && $meetup->nextEvent['start']->isFuture())
<div class="flex flex-col gap-1">
<flux:badge color="green" size="sm">
{{ $meetup->nextEvent['start']->format('d.m.Y H:i') }}
</flux:badge>
<div class="text-xs text-zinc-500 flex items-center gap-2">
<span>{{ $meetup->nextEvent['attendees'] }} {{ __('Zusagen') }}</span>
<flux:separator vertical/>
<span>{{ $meetup->nextEvent['might_attendees'] }} {{ __('Vielleicht') }}</span>
<a href="{{ route('meetups.landingpage-event', ['meetup' => $meetup, 'event' => $meetup->nextEvent['id'], 'country' => $country]) }}">
<div class="flex flex-col gap-1">
<flux:badge color="green" size="sm">
{{ $meetup->nextEvent['start']->asDateTime() }}
</flux:badge>
<div class="text-xs text-zinc-500 flex items-center gap-2">
<span>{{ $meetup->nextEvent['attendees'] }} {{ __('Zusagen') }}</span>
<flux:separator vertical/>
<span>{{ $meetup->nextEvent['might_attendees'] }} {{ __('Vielleicht') }}</span>
</div>
</div>
</div>
</a>
@endif
</flux:table.cell>