diff --git a/synchro/synchro_import.php b/synchro/synchro_import.php index e4e15c6a3..5c2abe17d 100644 --- a/synchro/synchro_import.php +++ b/synchro/synchro_import.php @@ -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;