Skip to content

Commit

Permalink
Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 19, 2009
2 parents 79e96e5 + ae342c6 commit 52180d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cake/tests/cases/libs/view/helpers/time.test.php
Expand Up @@ -639,6 +639,11 @@ function testWasWithinLast() {
* @return void
*/
function testUserOffset() {
if ($this->skipIf(!class_exists('DateTimeZone'), '%s DateTimeZone class not available.')) {
return;
}


$timezoneServer = new DateTimeZone(date_default_timezone_get());
$timeServer = new DateTime('now', $timezoneServer);
$yourTimezone = $timezoneServer->getOffset($timeServer) / HOUR;
Expand Down

0 comments on commit 52180d5

Please sign in to comment.