Was that setting unset also in your previous configuration? What PHP version was the previous one?
Janis
No: paulf@xxxxxxxxxxxxxxxxx <paulf@xxxxxxxxxxxxxxxxx>
Nosūtīts: svētdiena, 2023. gada 7. maijs 20:36
Kam: php-general@xxxxxxxxxxxxx <php-general@xxxxxxxxxxxxx>
Tēma: Re: Dates ahead of time on PHP
Nosūtīts: svētdiena, 2023. gada 7. maijs 20:36
Kam: php-general@xxxxxxxxxxxxx <php-general@xxxxxxxxxxxxx>
Tēma: Re: Dates ahead of time on PHP
On Sun, 07 May 2023 10:21:15 +0000
Richard <inbound-lists-php@xxxxxxxxxxxxxxxxxxxxx> wrote:
[snip]
> Use a PHP function that returns the timezone that PHP is seeing, that
> will help you know what you're looking for. The "getdate" function
> doesn't include that bit, so you can't tell. It appears to be set to
> GMT/UTC.
Editing /etc/php/8.2/apache2/php.ini at ";date.timezone =" to read
"date.timezone = America/New_York" appears to solve the problem.
However, it doesn't answer the question of why I didn't have to do this
on the previous install, where the timezone was not specified.
Paul
--
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster
Richard <inbound-lists-php@xxxxxxxxxxxxxxxxxxxxx> wrote:
[snip]
> Use a PHP function that returns the timezone that PHP is seeing, that
> will help you know what you're looking for. The "getdate" function
> doesn't include that bit, so you can't tell. It appears to be set to
> GMT/UTC.
Editing /etc/php/8.2/apache2/php.ini at ";date.timezone =" to read
"date.timezone = America/New_York" appears to solve the problem.
However, it doesn't answer the question of why I didn't have to do this
on the previous install, where the timezone was not specified.
Paul
--
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster