[Zope] Formatted date anomaly ...

Martijn Pieters mj@digicool.com
Mon, 14 Feb 2000 05:58:36 -0500


From: Darran Edmundson [mailto:dee124@rsphy1.anu.edu.au]
> 
> Here's a strange one.  I have a property StartDate (type date)
> set to "01/01/2000".  Can someone please explain why the DTML
> snippet:
>      <dtml-var StartDate> <dtml-var StartDate fmt="%Y"> 
> renders as:
>      2000/01/01 1999
> 
> (More info on Zope formatting of dates and times can be found in
> the HowTo:
>     http://www.zope.org/Members/AlexR/CustomDateFormats)
> 

From the exact same How-To that you metion:

  "Note that the output is GMT-based. So you cannot use these codes
directly to format date and time values for say European timezones."

In that sentence lies the answer to your question.

-- 
Martijn Pieters, Software Engineer 
| Digital Creations http://www.digicool.com 
| Creators of Zope      http://www.zope.org 
| mailto:mj@digicool.com       ICQ: 4532236
| PGP:
http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 
-------------------------------------------