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:
Mark Baker 2010-12-03 14:28:57 +00:00
parent d57128a095
commit 5917b8c9b0

View File

@ -280,13 +280,13 @@ class PHPExcel_Shared_Date
if (strlen($dateValue) < 2) if (strlen($dateValue) < 2)
return false; return false;
$dateValueNew = PHPExcel_Calculation_Functions::DATEVALUE($dateValue); $dateValueNew = PHPExcel_Calculation_DateTime::DATEVALUE($dateValue);
if ($dateValueNew === PHPExcel_Calculation_Functions::VALUE()) { if ($dateValueNew === PHPExcel_Calculation_Functions::VALUE()) {
return false; return false;
} else { } else {
if (strpos($dateValue, ':') !== false) { if (strpos($dateValue, ':') !== false) {
$timeValue = PHPExcel_Calculation_Functions::TIMEVALUE($dateValue); $timeValue = PHPExcel_Calculation_DateTime::TIMEVALUE($dateValue);
if ($timeValue === PHPExcel_Calculation_Functions::VALUE()) { if ($timeValue === PHPExcel_Calculation_Functions::VALUE()) {
return false; return false;
} }