From 5917b8c9b0082bcc98a359bb493d582217c19b45 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Fri, 3 Dec 2010 14:28:57 +0000 Subject: [PATCH] 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 --- Classes/PHPExcel/Shared/Date.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/PHPExcel/Shared/Date.php b/Classes/PHPExcel/Shared/Date.php index 0c9bb60..70bc2be 100644 --- a/Classes/PHPExcel/Shared/Date.php +++ b/Classes/PHPExcel/Shared/Date.php @@ -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; }