From c855ef874b064649ec9447b60c3f979f2ac08325 Mon Sep 17 00:00:00 2001 From: bancer Date: Fri, 25 Jan 2019 12:25:26 +0100 Subject: [PATCH] Simplify i18nFormat --- lib/Cake/Utility/CakeTime.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Cake/Utility/CakeTime.php b/lib/Cake/Utility/CakeTime.php index c12767529..1c2b1dfea 100644 --- a/lib/Cake/Utility/CakeTime.php +++ b/lib/Cake/Utility/CakeTime.php @@ -1074,9 +1074,7 @@ class CakeTime { date_default_timezone_set($timezone); } $result = static::_strftime(static::convertSpecifiers($format, $timestamp), $timestamp); - if (!empty($serverTimeZone)) { - date_default_timezone_set($serverTimeZone); - } + date_default_timezone_set($serverTimeZone); return $result; }