original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns the list of timezones where the specified timestamp in that timezone
  is on a different day than today in that timezone.
  
  @return array
docstring_tokens: Returns the list of timezones where the specified timestamp in that timezone is on a different day than today in that timezone .