Created
August 4, 2023 03:56
-
-
Save sawirricardo/d2a84ec0ae2475c050e51c335323e437 to your computer and use it in GitHub Desktop.
Update timezone using Laravel Livewire Volt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$updateTimezone = fn($timezone) => session()->put('timezone', $timezone); | |
?> | |
<div x-init="$wire.updateTimezone(Intl.DateTimeFormat().resolvedOptions().timeZone)"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment