Re: Dates ahead of time on PHP

From: Date: Sun, 07 May 2023 18:19:59 +0000
Subject: Re: Dates ahead of time on PHP
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-328198@lists.php.net to get a copy of this message
Was that setting unset also in your previous configuration? What PHP version was the previous one? Janis ________________________________ No: paulf@quillandmouse.com <paulf@quillandmouse.com> Nosūtīts: svētdiena, 2023. gada 7. maijs 20:36 Kam: php-general@lists.php.net <php-general@lists.php.net> Tēma: Re: Dates ahead of time on PHP 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 (#328198) next »