The timezone problem
Max Kanat-Alexander
mkanat at bugzilla.org
Thu Nov 12 06:48:55 UTC 2009
On 10/13/2009 09:14 AM, Gervase Markham wrote:
> 1) the API proxy knew (in its config or by asking Bugzilla) the timezone
> and DST rules (as in e.g. "America/Los Angeles") the Bugzilla server was
> in, and
The XML-RPC "time" method does return that information. If you log out
of Bugzilla you'll always get Bugzilla's local timezone.
> => the API could take the times that come back from Bugzilla and, using
> its knowledge of what zone they are actually in, convert them to UTC.
>
> Would that work? Or have I missed something?
I think that would work. You could even use DateTime like we do, so
you'd be using the same code to get convert it backward that we're using
to spit out the timezone info in the first place. The only problem is
that we're not *storing* times in UTC, so DST times will actually be
wrong when converted, I think (not sure).
-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.
More information about the developers
mailing list