Пример #1
0
 private function prepareToTime()
 {
     $operationHistory = $this->getActualOperationHistory()->getParentObject('synchronization');
     if (!is_null($operationHistory)) {
         $toTime = $operationHistory->getData('start_date');
     } else {
         $toTime = new \DateTime('now', new \DateTimeZone('UTC'));
     }
     return \Ess\M2ePro\Model\Ebay\Connector\Command\RealTime::ebayTimeToString($toTime);
 }
Пример #2
0
 protected function appendStartDateEndDateValues($data, $response)
 {
     if (isset($response['ebay_start_date_raw'])) {
         $data['start_date'] = \Ess\M2ePro\Model\Ebay\Connector\Command\RealTime::ebayTimeToString($response['ebay_start_date_raw']);
     }
     if (isset($response['ebay_end_date_raw'])) {
         $data['end_date'] = \Ess\M2ePro\Model\Ebay\Connector\Command\RealTime::ebayTimeToString($response['ebay_end_date_raw']);
     }
     return $data;
 }
Пример #3
0
 private function getProductDatesChanges(\Ess\M2ePro\Model\Listing\Product $listingProduct, array $change)
 {
     return array('start_date' => \Ess\M2ePro\Model\Ebay\Connector\Command\RealTime::ebayTimeToString($change['startTime']), 'end_date' => \Ess\M2ePro\Model\Ebay\Connector\Command\RealTime::ebayTimeToString($change['endTime']));
 }