thank you for your time, however specifying the format ‘php:d.m.y H:i:s’ does not sovle the problem. Changing the timezone in the OS does not have affect either. As far as I remember, when I had the defaultTimezone and timeZone set to the same value, no conversion occurred in the past. For some reason, it doesn’t work now and I can’t figure out why.
We set the timezone in the config and the formatter most likely inherits this settings, because I see, it has also the ‘Sao_Paulo’ timezone. I have pin pointed the problem and I can see, that the conversion is done by the IntlDateFormatter object:
I have this personal function adapted to my requirements, I hope it helps you
private function CompuraFechaHora($hora_actual)
// captura el la hora de internet
// caso contrario que no la tenga la va tomar del servidor
$hoy = getdate();$hora= $hoy[‘hours’];$minutos= $hoy[‘minutes’];$segundos= $hoy[‘seconds’];
$hora_actual = $hora;
Different PHP versions produce different results. Maybe, this has something to do with the ICU version installed in the OS. My ICU version on my local computer is this:
marusiju@T470s ~/Workspace/ewb/plugins (master) $ php -i |grep -i icu
ICU version => 64.2
ICU Data version => 64.2
ICU TZData version => 2019a
ICU Unicode version => 12.1
libmongoc ICU => disabled
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
There’s a newer version of ICU available (65.1), but I don’t know, how to upgrade it properly. I was able to build the source code of this 65.1 version, but my php installation still uses the old one.