#1504: Using non-UTC timezone corrupts dates imported from XML spreadsheet (#1506)

This commit is contained in:
tyomitch 2020-06-19 20:38:06 +02:00 committed by GitHub
parent 262896086a
commit 35c04964cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ class Xml extends BaseReader
break;
case 'DateTime':
$type = DataType::TYPE_NUMERIC;
$cellValue = Date::PHPToExcel(strtotime($cellValue));
$cellValue = Date::PHPToExcel(strtotime($cellValue . ' UTC'));
break;
case 'Error':