Hi
I'm not sure this is the right place to talk about this... In our current server configuration, we have several versions of PHP available to clients:
PHP 5.6 to PHP 7.3 - Both packages from Ubuntu and from LSPHP.
Normally, since last week, we would be in daylight savings time in Brazil, but the president revoked this this year, and so begins our problems:
This is the script we are running to test:
The output we get are the following:
Using PHP from Ubuntu:
Using PHP from LSPHP packages:
The only LSPHP package returning the correct date is LSPHP 7.3. All the other versions from LS PHP, 5.6 to 7.2, are on daylight savings. I tried to update the packages, but nothing changed.
Server is configured to America/Sao_Paulo, as is the testing script itself.
What would you guys recommend me do?
I'm not sure this is the right place to talk about this... In our current server configuration, we have several versions of PHP available to clients:
PHP 5.6 to PHP 7.3 - Both packages from Ubuntu and from LSPHP.
Normally, since last week, we would be in daylight savings time in Brazil, but the president revoked this this year, and so begins our problems:
This is the script we are running to test:
Code:
root@xxxxxxxx:~# cat date.php
<?php
date_default_timezone_set('America/Sao_Paulo');
$date = date('m/d/Y h:i:s a', time());
echo $date;
echo "\n";
Using PHP from Ubuntu:
Code:
root@xxxxxxxx:~# php7.1 date.php
11/08/2019 05:05:50 pm
Code:
root@xxxxxxxx:~# lsphp7.1 date.php
11/08/2019 06:06:23 pm
Server is configured to America/Sao_Paulo, as is the testing script itself.
What would you guys recommend me do?