laravel-timezone
laravel-timezone copied to clipboard
Enable user Timezones in your application.
Hi James, i installing this package after that my web got 500 general internal server error (not laravel 500 error screen). when i switched from octane/swoole to php fpm my...
Custom Cast - https://laravel.com/docs/8.x/eloquent-mutators#custom-casts Add a new way to handle user timezone dates. When used on the `Eloquent`, it automatically transforms the value into a `Carbon` instance with the user...
Hello! Using your package I've encountered such bug: geoip()->getLocation($ip) returns an array with key `time_zone`, but in login event listener i found `timezone` key usage. Is this key depends on...
Hi there, First off wonderful package thank you for your awesome contribution :) I'm confused as to why @displayDate($event->event_date) is returning a time in CEST right now for a user...
In my apps, we do not store the timezone in `users.timezone`. We have a separate database table that stores various account-level settings, the timezone being only one of them. I...
https://github.com/jamesmills/laravel-timezone/blob/20ea12b088909c3dfadf6de8ae961c367a77b668/src/Timezone.php#L51 I'm wondering, if we can use protected instead of private function then people can easily extends the Timezone and customize to their need. Also, Can we extract the obtaining...
Hi, I think you are making an extra request if you do not have to update the user timezone. See [L50-L60](https://github.com/jamesmills/laravel-timezone/blob/master/src/Listeners/Auth/UpdateUsersTimezone.php#L50-L60) Maybe you should check first if you have to...
updating timezone only if timezone.overwrite config is true and field exist on users table
I needed a diffForHumans function that would use the user timezone, so I added this function to my local version. Created PR in case you want to amend and merge....