PhpSpreadsheet/tests/PhpSpreadsheetTests/Writer
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
..
Csv Fix For #1509 (#1518) 2020-06-19 20:28:57 +02:00
Html Testing - Delete Temp Files When No Longer Needed (#1488) 2020-05-24 20:03:07 +09:00
Ods Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Xls Xls Writer - Correct Timestamp Bug, Improve Coverage (#1493) 2020-06-19 21:08:36 +02:00
Xlsx Fix for #1533 (#1534) 2020-06-19 20:40:28 +02:00