mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 21:12:41 +00:00
Removing PHP4 compatibility code
Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
parent
bfcfeeb3ab
commit
957a75c45e
1 changed files with 0 additions and 2 deletions
|
@ -600,8 +600,6 @@ class TimeHelperTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testUserOffset() {
|
||||
$this->skipIf(!class_exists('DateTimeZone'), 'DateTimeZone class not available.');
|
||||
|
||||
$timezoneServer = new DateTimeZone(date_default_timezone_get());
|
||||
$timeServer = new DateTime('now', $timezoneServer);
|
||||
$yourTimezone = $timezoneServer->getOffset($timeServer) / HOUR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue