Last modified: 2011-04-30 01:20:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27751, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25751 - incorrect time displayed in History when in daylight saving site
incorrect time displayed in History when in daylight saving site
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
1.15.x
PC Linux
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-02 12:06 UTC by Paolo Benvenuto
Modified: 2011-04-30 01:20 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Paolo Benvenuto 2010-11-02 12:06:51 UTC
I have a mediawiki installation, using italian locales.

In Italy we have summer daylight saving site.

During the winter, history shows the time of the contributions correctly, but during the summer history shows the time of the contributions without considering the +1 hour shift.
Comment 1 Roan Kattouw 2010-11-02 12:13:26 UTC
What is $wgLocaltimezone set to in LocalSettings.php ?
Comment 2 Paolo Benvenuto 2010-11-02 12:50:30 UTC
#Set Default Timezone
$wgLocaltimezone = "Europe/Rome";
$oldtz = getenv("TZ");
Comment 3 Paolo Benvenuto 2010-11-02 12:52:00 UTC
#Set Default Timezone
$wgLocaltimezone = "Europe/Rome";
$oldtz = getenv("TZ");
putenv("TZ=$wgLocaltimezone");

# Versions before 1.7.0 used $wgLocalTZoffset as hours.
# After 1.7.0 offset as minutes
$wgLocalTZoffset = date("Z") / 60;
putenv("TZ=$oldtz");
Comment 4 Mark A. Hershberger 2011-02-08 21:37:39 UTC
Do you control the PHP installation? If so, maybe setting the timezone in the php.ini will help.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links