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,11 +325,12 @@ class Date
|
||||||
*/
|
*/
|
||||||
public static function isDateTime(Cell $pCell)
|
public static function isDateTime(Cell $pCell)
|
||||||
{
|
{
|
||||||
return self::isDateTimeFormat(
|
return is_numeric($pCell->getValue()) &&
|
||||||
$pCell->getWorksheet()->getStyle(
|
self::isDateTimeFormat(
|
||||||
$pCell->getCoordinate()
|
$pCell->getWorksheet()->getStyle(
|
||||||
)->getNumberFormat()
|
$pCell->getCoordinate()
|
||||||
);
|
)->getNumberFormat()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue