1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/13118] Correctly use the provided datetime class

PHPBB3-13118
This commit is contained in:
Joas Schilling
2014-09-29 21:37:15 +02:00
parent 71ac6ab2b8
commit 526329e697

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