Skip to content

Commit

Permalink
Fix tests after commit 94d70cc.
Browse files Browse the repository at this point in the history
Changed to ensure all datetimes are in UTC.
  • Loading branch information
mrubinsk committed Sep 1, 2016
1 parent 6d1cdd3 commit 8a295c5
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -45,7 +45,7 @@ public function testCurrentConditions()
// Wind
$this->assertEquals('SW', $conditions->wind_direction);
$this->assertEquals(220, $conditions->wind_degrees);
$this->assertEquals('2016-08-12 15:54:00', (string)$conditions->time);
$this->assertEquals('2016-08-12 19:54:00', (string)$conditions->time);

// METAR specific stuff.
$this->assertEquals(Horde_Service_Weather_Translation::t('scattered'), $conditions->clouds[0]['amount']);
Expand Down Expand Up @@ -77,7 +77,7 @@ public function testForecast()
$weather = $this->_getWeatherDriver();

$forecast = $weather->getForecast('KSAW');
$this->assertEquals('2016-08-12 23:59:00', (string)$forecast->getForecastTime());
$this->assertEquals('2016-08-13 03:59:00', (string)$forecast->getForecastTime());

$dayOne = $forecast->getForecastDay(0);
$this->assertInstanceOf('Horde_Service_Weather_Period_Taf', $dayOne);
Expand Down

0 comments on commit 8a295c5

Please sign in to comment.