composeer update
This commit is contained in:
3
vendor/cakephp/chronos/src/Chronos.php
vendored
3
vendor/cakephp/chronos/src/Chronos.php
vendored
@@ -110,7 +110,8 @@ class Chronos extends DateTimeImmutable implements ChronosInterface
|
||||
$testNow = $testNow->modify($time);
|
||||
}
|
||||
|
||||
if ($tz !== $testNow->getTimezone()) {
|
||||
$relativetime = static::isTimeExpression($time);
|
||||
if (!$relativetime && $tz !== $testNow->getTimezone()) {
|
||||
$testNow = $testNow->setTimezone($tz === null ? date_default_timezone_get() : $tz);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user