Last modified: 2006-04-30 12:21:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5191 - $wgLocalTZoffset rounds time zones half an hour ahead of UTC
$wgLocalTZoffset rounds time zones half an hour ahead of UTC
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
PC Linux
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-03-07 14:07 UTC by Vedant Lath
Modified: 2006-04-30 12:21 UTC (History)
1 user (show)

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


Description Vedant Lath 2006-03-07 14:07:22 UTC
When setting $wgLocalTZoffset to 5.5 for Indian Standard Time, MediaWiki takes
it as 5. So the time is 30 minutes behind the intended time.

I tried using server time by setting the $wgLocalTZoffset to " date("Z") / 3600
" but it was of no use. I also changed to 3600 to other nos. but in vain.

However, in user preferences, setting time zone offset to 05:30 works.

It may be because $wgLocalTZoffset is int, but I don't know much of PHP and
Comment 1 Antoine "hashar" Musso (WMF) 2006-04-30 12:08:06 UTC
$wgLocalTZoffset is a number of hours :(
Comment 2 Antoine "hashar" Musso (WMF) 2006-04-30 12:21:14 UTC
Fixed in trunk@13969 should be in MediaWiki 1.7.

I changed the setting to use minutes instead of hours.

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