git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4179 a333f486-631f-4898-b8df-5754b55c2be0
@@ -225,8 +225,8 @@ function ChangeDateFormat($sProposedDate, $sFormat)
}
else
{
- $oDate = DateTime::createFromFormat($sDateFormat, $sProposedDate);
- if ($oDate !== false)
+ $oDate = $oFormat->Parse($sProposedDate);
+ if ($oDate !== null)
$sDate = $oDate->format(AttributeDateTime::GetInternalFormat());
return $sDate;