2009/8/21 Loki eldurloki@gmail.com:
Hi I have a problem with the timezone in the api,
I have a time diff over 2 hours in my installation to system time, so I added the following [1]
$wgLocaltimezone = "Asia/Taipei"; $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");
but this affected only the "regular" part of mediawiki not the time in the api ... any ideas ?
The API is not affected by any timezone settings at all, AFAIK. It just outputs the time in the database, which is in UTC.
Roan Kattouw (Catrope)