$opening_date = '2020-01-01T00:00:00+08:00'
$opening_date = date('Y-m-d 00:00:00', strtotime($opening_date));
PHP 5.6 result
2020-01-01 00:00:00
PHP 8.0 result
2019-12-31 00:00:00
Hi, I'm doing date converting with different version but have no idea why the code is same but result is different. The expected result shall be 2020-01-01 00:00:00
but in PHP8.0 it minus 1 day. Is there any solution about this?