You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to add a timezone select to the Jetstream profile page? I only want to set timezone automatically when the user first log in and then let them change it under profile settings.
Has anyone built a select like that? I tried to add one, but quickly added up deep in laravel/jetstream core folders and figured I better ask here first.
Thanks!
The text was updated successfully, but these errors were encountered:
First edit the component for user profile: resources/views/profile/update-profile-information-form.blade.php
Add a select here with a list of timezones. You can get a timezone list using listidentifiers
Then allow the timezone input in app/Actions/Fortify/UpdateUserProfileInformation.php . You'll notice this is where the User model is updated, pass in the appropriate timezone value.
You'll want to add timezone to your user Model's $fillable if you resort to using the default $user->forceFill
Is there any way to add a timezone select to the Jetstream profile page? I only want to set timezone automatically when the user first log in and then let them change it under profile settings.
Has anyone built a select like that? I tried to add one, but quickly added up deep in laravel/jetstream core folders and figured I better ask here first.
Thanks!
The text was updated successfully, but these errors were encountered: