Fix call to DATEVALUE() and TIMEVALUE() methods for new function classes
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64766 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
d57128a095
commit
5917b8c9b0
|
@ -280,13 +280,13 @@ class PHPExcel_Shared_Date
|
|||
if (strlen($dateValue) < 2)
|
||||
return false;
|
||||
|
||||
$dateValueNew = PHPExcel_Calculation_Functions::DATEVALUE($dateValue);
|
||||
$dateValueNew = PHPExcel_Calculation_DateTime::DATEVALUE($dateValue);
|
||||
|
||||
if ($dateValueNew === PHPExcel_Calculation_Functions::VALUE()) {
|
||||
return false;
|
||||
} else {
|
||||
if (strpos($dateValue, ':') !== false) {
|
||||
$timeValue = PHPExcel_Calculation_Functions::TIMEVALUE($dateValue);
|
||||
$timeValue = PHPExcel_Calculation_DateTime::TIMEVALUE($dateValue);
|
||||
if ($timeValue === PHPExcel_Calculation_Functions::VALUE()) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue