aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-16 18:29:31 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-07-16 18:29:31 +0200
commitf5bb145040a483a76fd734bb9d4025c54e7917a0 (patch)
tree41aeef9b548c7e2efaf69e3f40d112a1ab02f5e1 /phpBB/includes/functions.php
parent82e195ac683f6604aee9862233ffcb4f58af64b0 (diff)
downloadforums-f5bb145040a483a76fd734bb9d4025c54e7917a0.tar
forums-f5bb145040a483a76fd734bb9d4025c54e7917a0.tar.gz
forums-f5bb145040a483a76fd734bb9d4025c54e7917a0.tar.bz2
forums-f5bb145040a483a76fd734bb9d4025c54e7917a0.tar.xz
forums-f5bb145040a483a76fd734bb9d4025c54e7917a0.zip
[feature/new-tz-handling] Require user argument on phpbb_datetime
PHPBB3-9558
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 98a08ea4d3..4fc2739f33 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1164,7 +1164,7 @@ function tz_select($default = '', $truncate = false, $return_tzs_only = true)
foreach ($unsorted_timezones as $timezone)
{
$tz = new DateTimeZone($timezone);
- $dt = new phpbb_datetime('now', $tz, $user);
+ $dt = new phpbb_datetime($user, 'now', $tz);
$offset = $dt->getOffset();
$current_time = $dt->format($user->lang['DATETIME_FORMAT'], true);
$offset_string = phpbb_format_timezone_offset($offset);
@@ -4813,7 +4813,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
}
}
- $dt = new phpbb_datetime('now', $user->tz, $user);
+ $dt = new phpbb_datetime($user, 'now', $user->tz);
$timezone_offset = 'GMT' . phpbb_format_timezone_offset($dt->getOffset());
$timezone_name = $user->tz->getName();
if (isset($user->lang['timezones'][$timezone_name]))