[Buildbot-devel] Re: suggestion: include timezones under "current activity"

Olly Betts olly at survex.com
Sat Apr 23 13:12:47 UTC 2005


On 2005-04-23, Brian Warner wrote:
> I can compare the event timestamps against the
> "this page built at.." note at the bottom of the page, but a simple
> "time(CST)" would be a bit easier to use.

Better still would be to display the times in localtime according to the
browser.  If javascript is present and enabled, it's not too hard to
do.  This page shows one way:

http://www.mt-dev.com/2002/06/use-php-and-javascript-to-display-local-time/

That's with PHP, but Python can easily be substituted.  The key idea is
to get the browser timezone using javascript and pass it to the server.

Cheers,
    Olly





More information about the devel mailing list