[Mailman-Users] Date stamp in pipermail is GMT

Mark Sapiro msapiro at value.net
Mon Dec 19 20:25:41 CET 2005


Elvis Fernandes wrote:
>
>I setup mailman-2.1.6 with date stamp patch (date-in-archive-index-1.patch)
>on Solaris8.
>Now the date and time show up against every msg in pipermail archives.
>
>However, the date and time in pipermail is in GMT.
>The same mail I receive in my mail reader in PST.
>
>Is there some place I can update the pipermail timezone to PST?


The patch you installed added the following four lines around line 1035
in Mailman/Archiver/HyperArch.py.

        date = float(date)
        date = time.gmtime(date)
        date = time.strftime("%b %d %Y - %H:%M:%S",date)
        date = CGIescape(date, self.lang)

If you change

        date = time.gmtime(date)
to
        date = time.localtime(date)

you'll get local time.

-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list