andreaselia / laravel-analytics

Analytics for the Laravel framework.
MIT License
165 stars 25 forks source link

Add the ability to adjust timezone offset for "now" #54

Closed grantholle closed 5 months ago

grantholle commented 5 months ago

My user was checking analytics later in the day in the US, after the UTC date had already turned over to the next day. The number of views for "today" displayed a very different result than they expected.

This allows you to set the timezone for the filter query scope, which will display more accurate results as you check views for the dashboard.

edrisranjbar commented 5 months ago

It seems like this feature is really needed.

andreaselia commented 5 months ago

Thanks for your PR @grantholle 👍

@edrisranjbar this is included in the latest version. We have a conflict with Laravel Jetstream at the moment too which will be resolved with a 2.0 version of the package since I'll be dropping PHP support below PHP 8 too.