Changing timezone does not work for the log file

Bug Summary

I changed the timezone in php.ini but it is stuck at UTC for the error.log file
Summarize the issue in one to two sentences.
Changed both conf/php.ini.hbs and conf/php-8.0.22/php.ini.hbs and set the timezone to America/new_york, which is reflected when looking at php.ini from local’s php details, but the error.log still logs the info at UTC.

Steps to reproduce

  1. change the php.ini.hbs files timezone settings to your timezone.
  2. do a php error by any mean.
  3. look at the error.log and see the timezone still being UTC
    As precisely as you can, list the steps it takes to reliably reproduce the issue.

Environment Info

Describe your environment.

  • What Operating System are you using?
    macos ventura 13.1
  • What versions of site software (Nginx, Apache, PHP, MySQL) is used?
    nginx, php 8.0.22, mysql 8.0.16
  • What version of Local is installed?
    6.6.0+6231

Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

Include any screenshots or video recordings of the issue to help others reproduce.

Hi @antoine1

After changing the time zone are you stopping/restarting the site or the Local app to see if the changes are compiling and still present?

yep, many times

1 Like

Did you find a solution to this timezone problem - is this still an issue? If so, I would like to know the solution also

Hi @CodeSlayer2010 and @antoine1

Following up on this to say that this isn’t necessarily a bug, however, we have logged it as a Feature Request and will look into setting a preferable time zone in the future!

The reason for this is that Local’s logs aren’t tied to the site’s PHP which is intentional and all log files are in UTC just as a standard practice.

Thank you both for your contribution to the community here. Feel free to point any others to the thread to upvote and comment. We keep track of these in order to look at what needs priority for future releases!

1 Like

Gotcha. Thanks for clarifying @Nick-B

1 Like