Support of date and time custom formats... continuing towards the beta !

SVN:trunk[4019]
This commit is contained in:
Denis Flaven
2016-05-03 09:56:02 +00:00
parent 7d4e9ce069
commit 5386662146
32 changed files with 518 additions and 460 deletions

View File

@@ -357,9 +357,12 @@ try
$oP->add_comment("Separator: ".$sSep);
$oP->add_comment("Qualifier: ".$sQualifier);
$oP->add_comment("Charset Encoding:".$sCharSet);
if (strlen($sDateFormat) > 0)
if (($sDateFormat !== null) && (strlen($sDateFormat) > 0))
{
$oP->add_comment("Date format: '$sDateFormat'");
$oP->add_comment("Date and time format: '$sDateFormat'");
$oDateTimeFormat = new DateTimeFormat($sDateFormat);
$sDateOnlyFormat = $oDateTimeFormat->ToDateFormat();
$oP->add_comment("Date format: '$sDateOnlyFormat'");
}
else
{