1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[feature/new-tz-handling] Fixed bug with signature of user::create_datetime().

First argument to user::create_datetime() should be optional.

PHPBB3-9558
This commit is contained in:
Chris Smith 2010-07-07 23:46:20 +01:00 committed by Oleg Pudeyev
parent 74be23a098
commit 2e7d9ec805

View File

@ -2113,7 +2113,7 @@ class user extends session
* @param DateTimeZone $timezone Time zone of the time.
* @return phpbb_datetime Date time object linked to the current users locale
*/
public function create_datetime($time, DateTimeZone $timezone = null)
public function create_datetime($time = 'now', DateTimeZone $timezone = null)
{
$timezone = $timezone ? $timezone : $this->tz;