From c6d11680f388e1931c6911a1a0ecb0c349bc14d1 Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Fri, 26 Jul 2013 15:56:00 +0400 Subject: [PATCH] change date format --- intaro.intarocrm/classes/general/ICrmOrderActions.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index cf6f12a2..4bd3f8de 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -217,6 +217,7 @@ class ICrmOrderActions 'firstName' => $firstName, 'patronymic' => $patronymic, 'phones' => $phones + 'createdAt' => $arUser['DATE_REGISTER'], )); $customer = $api->customerEdit($result); @@ -287,10 +288,6 @@ class ICrmOrderActions if($arFields['CANCELED'] == 'Y') $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( 'contactName' => $resOrder['contactName'], 'phone' => $resOrder['phone'], @@ -306,7 +303,7 @@ class ICrmOrderActions 'deliveryType' => $arParams['optionsDelivTypes'][$resultDeliveryTypeId], 'status' => $arParams['optionsPayStatuses'][$arFields['STATUS_ID']], 'statusComment' => $arFields['REASON_CANCELED'], - 'createdAt' => $createdAt, + 'createdAt' => $arFields['DATE_INSERT'], 'deliveryAddress' => $resOrderDeliveryAddress, 'items' => $items ));