src/OroCRM/Bundle/MagentoBundle/Provider/AbstractMagentoConnector.php 1 location
|
@@ 185-187 (lines=3) @@
|
182 |
|
if ($status) { |
183 |
|
$data = $status->getData(); |
184 |
|
if (empty($data[AbstractInitialProcessor::SKIP_STATUS])) { |
185 |
|
if (!empty($data[self::LAST_SYNC_KEY])) { |
186 |
|
return new \DateTime($data[self::LAST_SYNC_KEY], new \DateTimeZone('UTC')); |
187 |
|
} |
188 |
|
|
189 |
|
return clone $status->getDate(); |
190 |
|
} |
src/OroCRM/Bundle/MagentoBundle/Provider/AbstractInitialProcessor.php 1 location
|
@@ 85-91 (lines=7) @@
|
82 |
|
$lastStatus = $this->getLastStatusForConnector($integration, $connector, Status::STATUS_COMPLETED); |
83 |
|
if ($lastStatus) { |
84 |
|
$statusData = $lastStatus->getData(); |
85 |
|
if (!empty($statusData[self::INITIAL_SYNCED_TO])) { |
86 |
|
return \DateTime::createFromFormat( |
87 |
|
\DateTime::ISO8601, |
88 |
|
$statusData[self::INITIAL_SYNCED_TO], |
89 |
|
new \DateTimeZone('UTC') |
90 |
|
); |
91 |
|
} |
92 |
|
} |
93 |
|
|
94 |
|
return false; |