Skip to content

Commit

Permalink
DateTime::getTimestamp() only exists in PHP > 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 28, 2012
1 parent e8f727f commit 667dfd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Utility/CakeTimeTest.php
Expand Up @@ -518,7 +518,7 @@ public function testToRss() {
$yourTimezone = new DateTimeZone($timezone);
$yourTime = new DateTime($date, $yourTimezone);
$userOffset = $yourTimezone->getOffset($yourTime) / HOUR;
$time = $yourTime->getTimestamp();
$time = $yourTime->format('U');
$this->assertEquals($yourTime->format('r'), $this->Time->toRss($time, $userOffset), "Failed on $timezone");
$this->assertEquals($yourTime->format('r'), $this->Time->toRss($time, $timezone), "Failed on $timezone");
}
Expand Down

0 comments on commit 667dfd3

Please sign in to comment.