[Bug 19516] function userAdjust() handled user time zone not correct

2011-09-14 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=19516

--- Comment #4 from Brion Vibber br...@wikimedia.org 2011-09-15 01:24:59 UTC 
---
Ahh I think I see what's happening. The headers etc which use the user setting
are showing correctly -- it's the {{REVISIONTIMESTAMP}} that renders wrong.

{{REVISIONTIMESTAMP}} uses the server-wide timezone setting, which looks like
it's getting incorrectly set still through an old old system which only grabs
the current offset -- so at the moment we're actually using '120 minutes
offset' instead of 'Europe/Berlin' as the server default. D'oh!

Edited after end of summer time:
http://de.wikipedia.org/w/index.php?oldid=52264210 shows:
• header UTC: 2008-10-26 um 13:01:15
• header set to Europe/Berlin: 2008-10-26 um 14:01:15 - +1 RIGHT
• REVISIONTIMESTAMP: 20081026150115 - +2 WRONG

Edited during summer time:
http://de.wikipedia.org/w/index.php?oldid=52230987 shows:
• header UTC: 2008-10-25 um 16:14:28
• header set to Europe/Berlin: 2008-10-25 um 18:14:28 - +2 RIGHT
• REVISIONTIMESTAMP: 20081025181428 - +2 RIGHT


This bit in CommonSettings.php needs to be removed:


if ( !isset( $wgLocaltimezone ) ) $wgLocaltimezone = 'UTC';
# Ugly hack warning! This needs smoothing out.
if ( $wgLocaltimezone ) {
$oldtz = getenv( 'TZ' );
putenv( TZ=$wgLocaltimezone );
$wgLocalTZoffset = date( 'Z' ) / 60;
putenv( TZ=$oldtz );
}

... and alas similar code appears to be in Setup.php now. :P

Language::userAdjust's path through 'System' or tz being '' should probably be
pulled up and run through the date_create / date_timezone_set stuff if
$wgLocaltimezone is set, preferable to $wgLocalTZOffset.

Or at least they need to be sorted out in some way. :P

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 19516] function userAdjust() handled user time zone not correct

2010-10-31 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=19516

--- Comment #2 from Umherirrender umherirrender_de...@web.de 2010-10-31 
07:07:52 UTC ---
I have created testpages:

* Summertime:
** URL: http://de.wikipedia.org/w/index.php?oldid=80378354
** REVISIONTIMESTAMP: 20101017135817
** LOCALTIMESTAMP: 20101017145817
** UTC-Timestamp of Revision: 2010-10-17T12:58:17Z
* Wintertime:
** URL: http://de.wikipedia.org/w/index.php?oldid=80927014
** REVISIONTIMESTAMP: 20101031075756
** LOCALTIMESTAMP: 20101031075756
** UTC-Timestamp of Revision: 2010-10-31T06:57:56Z

When looking now at summertime, you will see that REVISIONTIMESTAMP and
LOCALTIMESTAMP are not the same (differ by one hour).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 19516] function userAdjust() handled user time zone not correct

2010-03-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=19516

--- Comment #1 from Umherirrender umherirrender_de...@web.de 2010-03-26 
20:49:09 UTC ---
Created an attachment (id=7249)
 -- (https://bugzilla.wikimedia.org/attachment.cgi?id=7249)
untested patch

I have attached a untested patch to show what I mean.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l