I have a problem with php in converting dates between timezones. In particular using the DateTime and DateTimeZone functions I get that the current offset of America/Mexico_City is -5 hours w.r.t UTC (-18000 seconds)
$dateTimeZone = new DateTimeZone('America/Mexico_City');
$date = new DateTime('NOW');
$offset = $dateTimeZone->getOffset( $date ); // -> here $offset = -18000
I read that Mexico cancelled the DST last year: https://www.timeanddate.com/news/time/mexico-abolishes-dst-2022.html
And now if you check the current time they say that the current offset is -6 hours w.r.t UTC: https://www.zeitverschiebung.net/en/city/3530597
Anyone experiencing this problem? I think I should open a bug to PHP but I'd like to double check if I am doing something wrong and if anyone else is experiencing this problem.
Thanks,