mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue