From 529617c77dca59c1e6c9c9f0555d4ad5b9859df7 Mon Sep 17 00:00:00 2001 From: Paolo Agostinetto Date: Mon, 20 Feb 2017 22:14:07 +0100 Subject: [PATCH] Fixed CS errors --- src/PhpSpreadsheet/Reader/Ods.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/PhpSpreadsheet/Reader/Ods.php b/src/PhpSpreadsheet/Reader/Ods.php index 33254ff3..cf514883 100644 --- a/src/PhpSpreadsheet/Reader/Ods.php +++ b/src/PhpSpreadsheet/Reader/Ods.php @@ -477,7 +477,6 @@ class Ods extends BaseReader implements IReader // } break; case 'table-row': - if ($childNode->hasAttributeNS($tableNs, 'number-rows-repeated')) { $rowRepeats = $childNode->getAttributeNS($tableNs, 'number-rows-repeated'); } else { @@ -604,12 +603,18 @@ class Ods extends BaseReader implements IReader $dateObj = new DateTime($value, $GMT); $dateObj->setTimeZone($timezoneObj); - list($year, $month, $day, $hour, $minute, $second) = explode(' ', + list($year, $month, $day, $hour, $minute, $second) = explode( + ' ', $dateObj->format('Y m d H i s') ); $dataValue = \PhpOffice\PhpSpreadsheet\Shared\Date::formattedPHPToExcel( - $year, $month, $day, $hour, $minute, $second + $year, + $month, + $day, + $hour, + $minute, + $second ); if ($dataValue != floor($dataValue)) {