mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 15:26:03 +03:00
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)
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user