PhpSpreadsheet/tests/data/Shared
oleibman 5dd7e883c6
Fix Issue 1441 (isDateTime and Formulas) (#1480)
* Fix Issue 1441 (isDateTime and Formulas)

When you have a date-field which is a formula, isDateTime returns false.
https://github.com/PHPOffice/PhpSpreadsheet/issues/1441

Report makes sense; fixed as suggested. Also fixed a few minor
related issues, and added tests so that Shared/Date and Shared/TimeZone
are now completely covered.

Date/setDefaultTimeZone and TimeZone/setTimeZone were not consistent
about what to do in event of failure - return false or throw.
They will now both return false, which is what Date's function
said it would do in its doc block anyhow. Date/validateTimeZone will
continue to throw; it was protected, but was never called outside
Date, so I changed it to private.

TimeZone/getTimeZoneAdjustment checked for 'UST' when it probably
meant 'UTC', and, as it turns out, the check is not even needed.

The most serious problem was that TimeZone/validateTimeZone does not
check the backwards-compatible time zones. The timezone project
aggressively, and very controversially, "demotes" timezones;
such timezones eventually wind up in the PHP backwards-compatible list.
We want to make sure to check that list so that our applications do not
break when this happens.
2020-05-24 20:02:39 +02:00
..
Date Fix Issue 1441 (isDateTime and Formulas) (#1480) 2020-05-24 20:02:39 +02:00
OLERead Xls file threw exception during open by Xls reader 2018-10-07 18:49:01 +11:00
CentimeterSizeToPixels.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
CodePage.php Code Coverage for Shared\CodePage (#1491) 2020-05-24 19:51:28 +09:00
FontSizeToPixels.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
InchSizeToPixels.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
PasswordHashes.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00