scotch-io / scotch-box

Scotch Box is a preconfigured Vagrant Box with a full array of LAMP Stack features to get you up and running with Vagrant in no time.
http://box.scotch.io
2.7k stars 548 forks source link

Unable to set date.timezone. #399

Closed JustinTBrown closed 5 years ago

JustinTBrown commented 5 years ago

Similar to issue #391, I'm unable to correctly set date.timezone.

I've edited both /etc/php/7.0/apache2/php.ini and /etc/php/7.0/apache2/conf.d/user.ini with date.timezone = America/Edmonton, but phpinfo() shows "no value" for timezone.

Any ideas?

kenef commented 5 years ago

What does phpinfo() say for php.ini file location? You might want to try editing the date.timezone in /etc/php/7.0/cli/php.ini

Cheers.

JustinTBrown commented 5 years ago

@kenef That worked. Many thanks!