diff --git a/Classes/PHPExcel/Shared/Date.php b/Classes/PHPExcel/Shared/Date.php index a99f0706c..278f6ba1b 100644 --- a/Classes/PHPExcel/Shared/Date.php +++ b/Classes/PHPExcel/Shared/Date.php @@ -188,8 +188,8 @@ public static function PHPToExcel($dateValue = 0, $adjustToTimezone = false, $ti } elseif (is_numeric($dateValue)) { $retValue = self::FormattedPHPToExcel(date('Y', $dateValue), date('m', $dateValue), date('d', $dateValue), date('H', $dateValue), date('i', $dateValue), date('s', $dateValue)); } elseif (is_string($dateValue)) { - $retValue = self::stringToExcel($dateValue) - } + $retValue = self::stringToExcel($dateValue); + date_default_timezone_set($saveTimeZone); return $retValue;