diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index 4bd3f8de..2f499d19 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -211,13 +211,16 @@ class ICrmOrderActions ); $phones[] = $phoneWork; + $createdAt = new \DateTime($arUser['DATE_REGISTER']); + $createdAt = $createdAt->format('Y-m-d H:i:s'); + $result = self::clearArr(array( 'externalId' => $arFields['USER_ID'], 'lastName' => $lastName, 'firstName' => $firstName, 'patronymic' => $patronymic, - 'phones' => $phones - 'createdAt' => $arUser['DATE_REGISTER'], + 'phones' => $phones, + 'createdAt' => $createdAt, )); $customer = $api->customerEdit($result);