[Zope3-dev] weird problem with pytz+DC
Adam Groszer
adamg at fw.hu
Thu May 25 10:02:24 EDT 2006
Hi there,
I've run into the following problem when trying to use zc.datetimewidget
in my app: IZopeDublinCore.modified value is a datetime, but it is
having a tzinfo(0) as I check it, instead of pytz.utc. That's weird,
because timeannotators.py sets it as
dc.modified = datetime.now(pytz.utc)
But somehow it gets unpickled again as with tzinfo(0). That's not bad,
but comparing tzinfo(0) with pytz.utc fails.
Am I doing something wrong? Anybody noticed that already?
--
Best regards,
Adam mailto:adamg at fw.hu
--
Quote of the day:
To believe with certainty, we must begin with doubting.
- Stanislaus I
More information about the Zope3-dev
mailing list