DateTime SyntaxError on PDT Timezone
My MiniPlanet gave me SyntaxErrors on one feed, due to the feed in question being in the timezone "PDT". Problem is that Zope's DateTime module does not know that timezone. A quick search and some reading up suggested the following patch to $SOFTWARE_HOME/DateTime/DateTime.py:
--- old_DateTime.py Wed Jan 13 10:21:24 2010
+++ DateTime.py Wed Jan 13 10:20:46 2010
@@ -246,6 +246,7 @@
'us/samoa':'US/Samoa',
'ut':'Universal',
+ 'PDT':'GMT-7', 'pdt':'GMT-7',
'bst':'GMT+1', 'mest':'GMT+2', 'sst':'GMT+2',
'fst':'GMT+2', 'wadt':'GMT+8', 'eadt':'GMT+11', 'nzdt':'GMT+13',
'wet':'GMT', 'wat':'GMT-1', 'at':'GMT-2', 'ast':'GMT-4',
(Patchfile, apply as usual, $STANDARD_DISCLAIMER applies, watch your steps!) Patching this directly in the Zope source code isn't the most elegant of solutions, but it works. (At least till the next Zope upgrade.) Well, it could be fixed in newer versions of Zope, what do I know with the old cruft that I'm running there.