mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 20:16:45 +00:00
Fix a test
This commit is contained in:
@@ -498,7 +498,7 @@ final class CoreExtension extends AbstractExtension
|
||||
return false !== $timezone ? $date->setTimezone($timezone) : $date;
|
||||
}
|
||||
|
||||
if ($date instanceof \DateTimeInterface) {
|
||||
if ($date instanceof \DateTime) {
|
||||
$date = clone $date;
|
||||
if (false !== $timezone) {
|
||||
$date->setTimezone($timezone);
|
||||
|
||||
Reference in New Issue
Block a user