private function getTimezonesHavingNewDaySinceLastRun()
    {
        $timestamp = $this->lastSuccessRunTimestamp;
        $uniqueTimezones = APISitesManager::getInstance()->getUniqueSiteTimezones();
        $timezoneToProcess = array();
        foreach ($uniqueTimezones as &$timezone) {
            $processedDateInTz = Date::factory((int)$timestamp, $timezone);
            $currentDateInTz = Date::factory('now', $timezone);

            if ($processedDateInTz->toString() != $currentDateInTz->toString()) {
                $timezoneToProcess[] = $timezone;
            }
        }
        return $timezoneToProcess;
    }
private function getTimezonesHavingNewDaySinceLastRun()
    {
        $timestamp = $this->lastSuccessRunTimestamp;
        $uniqueTimezones = APISitesManager::getInstance()->getUniqueSiteTimezones();
        $timezoneToProcess = array();
        foreach ($uniqueTimezones as &$timezone) {
            $processedDateInTz = Date::factory((int)$timestamp, $timezone);
            $currentDateInTz = Date::factory('now', $timezone);

            if ($processedDateInTz->toString() != $currentDateInTz->toString()) {
                $timezoneToProcess[] = $timezone;
            }
        }
        return $timezoneToProcess;
    }
private function getTimezonesHavingNewDaySinceLastRun ( ) { $ timestamp = $ this -> lastSuccessRunTimestamp ; $ uniqueTimezones = APISitesManager :: getInstance ( ) -> getUniqueSiteTimezones ( ) ; $ timezoneToProcess = array ( ) ; foreach ( $ uniqueTimezones as & $ timezone ) { $ processedDateInTz = Date :: factory ( ( int ) $ timestamp , $ timezone ) ; $ currentDateInTz = Date :: factory ( 'now' , $ timezone ) ; if ( $ processedDateInTz -> toString ( ) != $ currentDateInTz -> toString ( ) ) { $ timezoneToProcess [ ] = $ timezone ; } } return $ timezoneToProcess ; }
Returns the list of timezones where the specified timestamp in that timezone
is on a different day than today in that timezone.

@return array
Returns the list of timezones where the specified timestamp in that timezone is on a different day than today in that timezone .