Re: Dates ahead of time on PHP

From: Date: Sun, 07 May 2023 17:36:22 +0000
Subject: Re: Dates ahead of time on PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-328197@lists.php.net to get a copy of this message
On Sun, 07 May 2023 10:21:15 +0000 Richard <inbound-lists-php@listmail.innovate.net> 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

« previous php.general (#328197) next »