date is 1970/01/01 01:59:60 GMT
I guess there's something wrong with the DateTime module: <dtml-var "_.DateTime(7200, 'GMT')"> yields 1970/01/01 01:59:60 GMT Whilst <dtml-var "_.DateTime(7201, 'GMT')"> yields 1970/01/01 02:00:01 GMT However, when omitting the timezone, it works as expected: <dtml-var "_.DateTime(7200)"> gives 1970/01/01 03:00:00 GMT (I'm in the BST timezone) Stranger still, if I give it the 'BST' timezone, it works too <dtml-var "_.DateTime(7200, 'BST')"> gives 1970/01/01 03:00:00 GMT+1 I'm using Zope 2.1.6, RedHat Linux 6.1. -- Steve Alexander Cat-Box limited
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... ;-) cheers, Chris
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
The time is "01:59:60" -- I'm sure a time format should never display a "60" in the seconds field.
Okay, so I didn't notice it ;-) It's not really the sort of thing you look for though... I totally agree and would go ahead and chuck it in the collector: http://classic.zope.org:8080/Collector/Collector/developer_input Chris
participants (2)
-
Chris Withers -
Steve Alexander