1
0
mirror of synced 2024-11-25 14:56:09 +03:00

change date format

This commit is contained in:
Ilyas Salikhov 2013-07-26 15:56:00 +04:00
parent e220e8eabc
commit c6d11680f3

View File

@ -217,6 +217,7 @@ class ICrmOrderActions
'firstName' => $firstName, 'firstName' => $firstName,
'patronymic' => $patronymic, 'patronymic' => $patronymic,
'phones' => $phones 'phones' => $phones
'createdAt' => $arUser['DATE_REGISTER'],
)); ));
$customer = $api->customerEdit($result); $customer = $api->customerEdit($result);
@ -287,10 +288,6 @@ class ICrmOrderActions
if($arFields['CANCELED'] == 'Y') if($arFields['CANCELED'] == 'Y')
$arFields['STATUS_ID'] = $arFields['CANCELED']; $arFields['STATUS_ID'] = $arFields['CANCELED'];
$createdAt = \datetime::createfromformat('Y-m-d H:i:s', $arFields['DATE_INSERT']);
if($createdAt)
$createdAt = $createdAt->format('d-m-Y H:i:s');
$resOrder = self::clearArr(array( $resOrder = self::clearArr(array(
'contactName' => $resOrder['contactName'], 'contactName' => $resOrder['contactName'],
'phone' => $resOrder['phone'], 'phone' => $resOrder['phone'],
@ -306,7 +303,7 @@ class ICrmOrderActions
'deliveryType' => $arParams['optionsDelivTypes'][$resultDeliveryTypeId], 'deliveryType' => $arParams['optionsDelivTypes'][$resultDeliveryTypeId],
'status' => $arParams['optionsPayStatuses'][$arFields['STATUS_ID']], 'status' => $arParams['optionsPayStatuses'][$arFields['STATUS_ID']],
'statusComment' => $arFields['REASON_CANCELED'], 'statusComment' => $arFields['REASON_CANCELED'],
'createdAt' => $createdAt, 'createdAt' => $arFields['DATE_INSERT'],
'deliveryAddress' => $resOrderDeliveryAddress, 'deliveryAddress' => $resOrderDeliveryAddress,
'items' => $items 'items' => $items
)); ));