[Buildbot-devel] Long time name
Mateusz Loskot
mateusz at loskot.net
Sun Nov 19 19:56:06 UTC 2006
Mateusz Loskot wrote:
> Hi,
>
> I'm running Buildbot on Windows in Polish language edition
> and the first column with times gets very long title, together with time
> zone name.
> Here is the screenshot:
>
> http://mateusz.loskot.net/tmp/buildbot-longtimename.png
>
> Would it be possible to remove this timezone name in parenthesis
> or format shorter?
I applied a very small and dirty hack and manually set timezone
abbreviation instead of long name:
In file html.py, lines 1137-1141:
# mloskot: small hack to remove long TZ name for Eastern Europe
#TZ = time.tzname[time.daylight]
TZ = "CET"
data += td("time (%s)" % TZ, align="center", class_="Time")
ATM, I don't know how to retrieve TZ abbrev. automatically, using
Python and time module API.
Does anyone know?
Chers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the devel
mailing list