[Mailman-Users] Timezone problem

Nigel Metheringham Nigel.Metheringham at vdata.co.uk
Mon Jul 19 18:12:45 CEST 1999


[don't quite have the bits to build a patch right now...]

If you find the line near the bottom of Message.py which has:-

    def SetDate(self, date=time.ctime(time.time())):

and modify it to something like:-

    def SetDate(self, date=time.strftime("%a, %d  %b  %Y %H:%M:%S %z", 
time.localtime(time.time()))):

[which has probably wrapped on mail send :-( ]

BTW the %z might be a GNU library special - not sure what other 
strftimes have.  Also if you use gmtime rather than localtime you may 
see some very odd behaviour - at least I do during the first hour after 
midnight each day during DST.

	Nigel.
-- 
[ Nigel Metheringham                  Nigel.Metheringham at VData.co.uk ]
[ Phone: +44 1423 850000                         Fax +44 1423 858866 ]






More information about the Mailman-Users mailing list