1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-04 06:39:14 +02:00

Merge pull request #3007 from nickvergessen/ticket/13118

[ticket/13118] Correctly use the provided datetime class

* nickvergessen/ticket/13118:
  [ticket/13118] Correctly use the provided datetime class
This commit is contained in:
Andreas Fischer 2014-09-30 21:00:05 +02:00
commit a0db23bd0e

View File

@ -717,7 +717,7 @@ class user extends \phpbb\session
$utc = new \DateTimeZone('UTC');
}
$time = new \phpbb\datetime($this, "@$gmepoch", $utc);
$time = new $this->datetime($this, "@$gmepoch", $utc);
$time->setTimezone($this->timezone);
return $time->format($format, $forcedate);