[Zope] date is 1970/01/01 01:59:60 GMT

Steve Alexander steve@cat-box.net
Mon, 24 Apr 2000 14:28:43 +0100


Chris Withers wrote:
> 
> > I guess there's something wrong with the DateTime module:
> >
> >   <dtml-var "_.DateTime(7200, 'GMT')">
> >
> > yields
> >
> >   1970/01/01 01:59:60 GMT
> 
> Steve,
> 
> Not sure what you're expecting here.
> 
> If you're expecting 1970/01/01 02:59:60 GMT, bear in mind that GMT doesn't change. BST is GMT +1hr
> 
> If I'm getting the wrong end of the stick, please elaborate... ;-)

The time is "01:59:60" -- I'm sure a time format should never display a
"60" in the seconds field.

(Except perhaps in one of those "leap-seconds" every century or so...)

--
Steve Alexander
Cat-Box limited