mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge branch '3.2.x'
* 3.2.x: [ticket/14536] Force unix time stamps to be integer
This commit is contained in:
commit
b0d105c8e0
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ class user extends \phpbb\session
|
|||
$utc = new \DateTimeZone('UTC');
|
||||
}
|
||||
|
||||
$time = new $this->datetime($this, "@$gmepoch", $utc);
|
||||
$time = new $this->datetime($this, '@' . (int) $gmepoch, $utc);
|
||||
$time->setTimezone($this->timezone);
|
||||
|
||||
return $time->format($format, $forcedate);
|
||||
|
|
Loading…
Add table
Reference in a new issue