Re: Dates ahead of time on PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux