diff options
author | Chris Smith <toonarmy@phpbb.com> | 2010-07-07 23:46:20 +0100 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-03-14 22:57:29 -0400 |
commit | 2e7d9ec805a8f2088ceebf22dbc97b89a72f76d0 (patch) | |
tree | c12acd07c86bf8fd513c76930c032a4bb94b5ad3 | |
parent | 74be23a098ec222cf3f3d14d6b6df236c58e8c01 (diff) | |
download | forums-2e7d9ec805a8f2088ceebf22dbc97b89a72f76d0.tar forums-2e7d9ec805a8f2088ceebf22dbc97b89a72f76d0.tar.gz forums-2e7d9ec805a8f2088ceebf22dbc97b89a72f76d0.tar.bz2 forums-2e7d9ec805a8f2088ceebf22dbc97b89a72f76d0.tar.xz forums-2e7d9ec805a8f2088ceebf22dbc97b89a72f76d0.zip |
[feature/new-tz-handling] Fixed bug with signature of user::create_datetime().
First argument to user::create_datetime() should be optional.
PHPBB3-9558
-rw-r--r-- | phpBB/includes/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index e91606878a..cf2efd2960 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -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; |