[php-src] Issue #8217: new DateTime("@".$timestamp) should not crash (throws fatal error) with empty timestamp

From: Date: Fri, 18 Mar 2022 13:13:38 +0000
Subject: [php-src] Issue #8217: new DateTime("@".$timestamp) should not crash (throws fatal error) with empty timestamp
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240410@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8217 Comment Author: heiglandreas That sounds like you already got a DateTime object and you want to do something like $date->setTimeZone(new DateTimeZone('UTC'));? If not: Why not open a question on StackOverflow with the actual issue that you are trying to solve? And when you link to it from here others can find that then as well :wink:

« previous php.bugs (#240410) next »