Fix: properly parse dates in synchro import. Thanks to Karl aka karkoff1212 for reporting the issue.

SVN:trunk[4179]
This commit is contained in:
Denis Flaven
2016-06-02 15:12:57 +00:00
parent 2c5d95a638
commit 54a40c42cd

View File

@@ -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;