laravel / telescope

An elegant debug assistant for the Laravel framework.
https://laravel.com/docs/telescope
MIT License
4.84k stars 577 forks source link

[Feature Request] Set timezone for IncomingEntry recorded_at #1441

Closed WEDeach closed 7 months ago

WEDeach commented 7 months ago

This issue is similar to #330

If a server contains multiple time zones, the recorded time will be inconsistent. Is it possible to add a config to specify the default recording time zone?


As a temporary solution, I modified the code here https://github.com/laravel/telescope/blob/1f47307083d48aa2b8b4caef934609b555c8173e/src/IncomingEntry.php#L77

 $this->recordedAt = now(config('app.timezone')); 

Thank you for your consideration

driesvints commented 7 months ago

This won't work if the data is also read out at different servers. We suggest to not use the same Telescope setup if you use different timezones on different servers. Ideally the servers have the same timezone.