mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Support of date and time custom formats... continuing towards the beta !
SVN:trunk[4019]
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user