aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-18 16:52:52 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-07-18 16:52:52 +0200
commita71e60cdbd3e47c62a565dd777a28aec6832fb88 (patch)
tree5917a09f5a91dcbc2eb2cb80cb7e487c287e477d /phpBB/includes/functions.php
parent515e1662a900526342b595692d73372f4fb7bbf9 (diff)
downloadforums-a71e60cdbd3e47c62a565dd777a28aec6832fb88.tar
forums-a71e60cdbd3e47c62a565dd777a28aec6832fb88.tar.gz
forums-a71e60cdbd3e47c62a565dd777a28aec6832fb88.tar.bz2
forums-a71e60cdbd3e47c62a565dd777a28aec6832fb88.tar.xz
forums-a71e60cdbd3e47c62a565dd777a28aec6832fb88.zip
[feature/new-tz-handling] Rename $user->tz back to $user->timezone
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 22e456c7de..b5d164f7a3 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4821,9 +4821,9 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
}
}
- $dt = new phpbb_datetime($user, 'now', $user->tz);
+ $dt = new phpbb_datetime($user, 'now', $user->timezone);
$timezone_offset = 'GMT' . phpbb_format_timezone_offset($dt->getOffset());
- $timezone_name = $user->tz->getName();
+ $timezone_name = $user->timezone->getName();
if (isset($user->lang['timezones'][$timezone_name]))
{
$timezone_name = $user->lang['timezones'][$timezone_name];