aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/feed.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/feed.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/feed.php')
-rw-r--r--phpBB/feed.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php
index fcf42a83ae..9b7ef3a575 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -254,16 +254,8 @@ function feed_format_date($time)
{
global $user;
- $zone_offset = (int) $user->timezone + (int) $user->dst;
-
- $sign = ($zone_offset < 0) ? '-' : '+';
- $time_offset = abs($zone_offset);
-
- $offset_seconds = $time_offset % 3600;
- $offset_minutes = $offset_seconds / 60;
- $offset_hours = ($time_offset - $offset_seconds) / 3600;
-
- $offset_string = sprintf("%s%02d:%02d", $sign, $offset_hours, $offset_minutes);
+ $zone_offset = $user->create_datetime()->getOffset();
+ $offset_string = phpbb_format_timezone_offset($zone_offset);
}
return gmdate("Y-m-d\TH:i:s", $time + $zone_offset) . $offset_string;