Formatting constant GENERAL should be FORMAT_GENERAL

This commit is contained in:
Mark Baker 2012-07-24 07:39:36 +01:00
parent 317f00b259
commit dbe12c73a2

View File

@ -265,7 +265,7 @@ class PHPExcel_Shared_Date
// Switch on formatcode
switch ($pFormatCode) {
// General contains an epoch letter 'e', so we trap for it explicitly here
case PHPExcel_Style_NumberFormat::GENERAL:
case PHPExcel_Style_NumberFormat::FORMAT_GENERAL:
return FALSE;
// Explicitly defined date formats
case PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD: