1
0
mirror of synced 2024-11-25 23:06:08 +03:00

change date format

This commit is contained in:
Ilyas Salikhov 2013-07-26 16:17:34 +04:00
parent c6d11680f3
commit 5b39c7349f

View File

@ -211,13 +211,16 @@ class ICrmOrderActions
); );
$phones[] = $phoneWork; $phones[] = $phoneWork;
$createdAt = new \DateTime($arUser['DATE_REGISTER']);
$createdAt = $createdAt->format('Y-m-d H:i:s');
$result = self::clearArr(array( $result = self::clearArr(array(
'externalId' => $arFields['USER_ID'], 'externalId' => $arFields['USER_ID'],
'lastName' => $lastName, 'lastName' => $lastName,
'firstName' => $firstName, 'firstName' => $firstName,
'patronymic' => $patronymic, 'patronymic' => $patronymic,
'phones' => $phones 'phones' => $phones,
'createdAt' => $arUser['DATE_REGISTER'], 'createdAt' => $createdAt,
)); ));
$customer = $api->customerEdit($result); $customer = $api->customerEdit($result);