Removing PHP4 compatibility code

Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
Jelle Henkens 2011-09-07 19:20:31 +01:00 committed by mark_story
parent bfcfeeb3ab
commit 957a75c45e

View file

@ -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;