mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 17:18:51 +02:00
Fix: properly parse dates in synchro import. Thanks to Karl aka karkoff1212 for reporting the issue.
SVN:trunk[4179]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user