Last modified: 2006-04-30 12:21:14 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 T7191, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5191 - $wgLocalTZoffset rounds time zones half an hour ahead of UTC
$wgLocalTZoffset rounds time zones half an hour ahead of UTC
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.6.x
PC Linux
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
MediaWiki.
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.


Navigation
Links