mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02: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:
parent
74be23a098
commit
2e7d9ec805
@ -2113,7 +2113,7 @@ class user extends session
|
|||||||
* @param DateTimeZone $timezone Time zone of the time.
|
* @param DateTimeZone $timezone Time zone of the time.
|
||||||
* @return phpbb_datetime Date time object linked to the current users locale
|
* @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;
|
$timezone = $timezone ? $timezone : $this->tz;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user