PhpSpreadsheet/tests/PhpSpreadsheetTests
oleibman b3d30f4cbc
Xls Writer - Correct Timestamp Bug, Improve Coverage (#1493)
* Xls Writer - Correct Timestamp Bug, Improve Coverage

I believe that Xls Writer is 100% covered now.

The Xls Writer sets its timestamp incorrectly. The problem is actually
in Shared/Ole::localDateToOLE, which converts its timestamp using
gmmktime; mktime is correct. If I save a file at 3:00 p.m. in San Francisco,
this bug means the time is actually recorded as 3:00 p.m. UTC.
A consequence of this is that if you use Phpspreadsheet to read the
file and save it as a new Xls, the creation timestamp goes further
and further back in time with each generation (or further forward
if east of Greenwich). One of the tests added confirms that
the creation timestamp is consistent with the start and end times
of the test.

The major change in coverage is adding tests to save GIF and BMP
images, which aren't supported in Xls, but are converted to PNG
in the PhpSpreadsheet code.
2020-06-19 21:08:36 +02:00
..
Calculation Resolve utf-8 named ranges in calculation engine (#1522) 2020-06-13 17:35:29 +02:00
Cell Fix for Issue 1495 (#1500) 2020-06-19 20:57:20 +02:00
Chart Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Collection Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Custom Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Functional Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Helper Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Reader Fix for #1505 (#1525) 2020-06-19 21:01:18 +02:00
Shared Fix Issue 1441 (isDateTime and Formulas) (#1480) 2020-05-24 20:02:39 +02:00
Style Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Worksheet Password and hash are exclusive 2020-05-31 22:36:37 +09:00
Writer Xls Writer - Correct Timestamp Bug, Improve Coverage (#1493) 2020-06-19 21:08:36 +02:00
DocumentGeneratorTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
IOFactoryTest.php Improve Coverage for Gnumeric (#1517) 2020-06-19 20:34:02 +02:00
ReferenceHelperTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
SettingsTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
SpreadsheetTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00