From 5b39c7349fc0e2ebed3168df89df316d9dd1da4f Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Fri, 26 Jul 2013 16:17:34 +0400 Subject: [PATCH] change date format --- intaro.intarocrm/classes/general/ICrmOrderActions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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);