aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_profile_fields.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-06-04 18:09:35 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-06-04 18:09:35 +0200
commit8f027b68d64c1baa99b272d45f382c17310f1480 (patch)
tree396e3a0db22b10060c42ad3cec8640e87a96c3c2 /phpBB/includes/functions_profile_fields.php
parent4af503e11bc2c42654cf783f031bdb074fdd91ed (diff)
parentb672fc7ae113c0e01f1d7ce4ffae3eb26e57b586 (diff)
downloadforums-8f027b68d64c1baa99b272d45f382c17310f1480.tar
forums-8f027b68d64c1baa99b272d45f382c17310f1480.tar.gz
forums-8f027b68d64c1baa99b272d45f382c17310f1480.tar.bz2
forums-8f027b68d64c1baa99b272d45f382c17310f1480.tar.xz
forums-8f027b68d64c1baa99b272d45f382c17310f1480.zip
Merge branch 'feature/new-tz-handling' of https://github.com/p/phpbb3 into feature/new-tz-handling
Conflicts: phpBB/includes/functions_profile_fields.php phpBB/includes/session.php phpBB/install/database_update.php
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
-rw-r--r--phpBB/includes/functions_profile_fields.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php
index 3399334f94..1c15ef897f 100644
--- a/phpBB/includes/functions_profile_fields.php
+++ b/phpBB/includes/functions_profile_fields.php
@@ -554,9 +554,12 @@ class custom_profile
else if ($day && $month && $year)
{
global $user;
- // Date should display as the same date for every user regardless of timezone, so remove offset
- // to compensate for the offset added by phpbb_user::format_date()
- return $user->format_date(gmmktime(0, 0, 0, $month, $day, $year) - ($user->timezone + $user->dst), $user->lang['DATE_FORMAT'], true);
+ // Date should display as the same date for every user regardless of timezone
+
+ return $user->create_datetime()
+ ->setDate($year, $month, $day)
+ ->setTime(0, 0, 0)
+ ->format($user->lang['DATE_FORMAT'], true);
}
return $value;