[Zope-CMF] Fwd: [CMF] 60/ 3 Comment "EffectiveDate and co don't keep tz offset"

Jens Vagelpohl jens at dataflake.org
Tue Nov 9 13:15:50 EST 2004


> For the future, there is a new ISO8601-method on the DateTime class 
> that returns correct formatting. It will be in Zope 2.7.4 with the 
> first alpha/beta and in Zope 2.8.0 after alpha1.
>
> In the meantime the CMF code could, since it's technically correct, 
> also call the already existing HTML4 method on the DateTime instance. 
> The only difference is the fact that the HTML4 method will return a 
> ISO 8601-compliant string that represents the DateTime instance 
> converted to UTC time zone, and thus with a simple "Z" suffix.

Before jumping in and changing it, would there be any problem in 
modifying all those DublinCore methods that currently call the 
ISO-method on the DateTime class to return a correct ISO 
8601-representation instead? Here's an example:

October 13th, 2004 at 2:34:54 PM in Fredericksburg/VA (EST)

ISO returns: 2004-10-13 14:24:54
ISO 8601 should be: 2004-10-13T14:24:54-05:00

jens



More information about the Zope-CMF mailing list