isDateTime() now checks for cell value as well as format mask (#919)
* isDateTime() now checks for cell value as well as format mask
This commit is contained in:
parent
9b004b1e6a
commit
432e5845e1
|
@ -325,7 +325,8 @@ class Date
|
|||
*/
|
||||
public static function isDateTime(Cell $pCell)
|
||||
{
|
||||
return self::isDateTimeFormat(
|
||||
return is_numeric($pCell->getValue()) &&
|
||||
self::isDateTimeFormat(
|
||||
$pCell->getWorksheet()->getStyle(
|
||||
$pCell->getCoordinate()
|
||||
)->getNumberFormat()
|
||||
|
|
Loading…
Reference in New Issue