mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
DateTime::getTimestamp() only exists in PHP > 5.3.0
This commit is contained in:
parent
e8f727fe68
commit
667dfd308f
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ class CakeTimeTest extends CakeTestCase {
|
|||
$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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue