Displayed Dates out by 1 day ...
I have a zclass containing a date field - when displayed with <dtml-var event_date>, if the field value is 2000/09/19 then it is displayed as 2000/09/18. I have to use <dtml-var "event_date + 1"> but this seems surreal. What am I doing wrong? puzzled Jonathan
Jonathan Cheyne wrote:
I have a zclass containing a date field - when displayed with <dtml-var event_date>, if the field value is 2000/09/19 then it is displayed as 2000/09/18. I have to use <dtml-var "event_date + 1"> but this seems surreal.
There have been bugs (okay, unexpected functionality ;-) in this area, especially if you use the fmt option. What version fo Zope are you using and what timezone are you in? cheers, Chris
2.2.0 final, london, uk. And yes, I make use of fmt in order to rearrange the dates the brit way. I just checked and that seems to be the prob. If I display the yank way then all is ok. ah weel the work around is fairly easy for now. Chris Withers wrote:
Jonathan Cheyne wrote:
I have a zclass containing a date field - when displayed with <dtml-var event_date>, if the field value is 2000/09/19 then it is displayed as 2000/09/18. I have to use <dtml-var "event_date + 1"> but this seems surreal.
There have been bugs (okay, unexpected functionality ;-) in this area, especially if you use the fmt option.
What version fo Zope are you using and what timezone are you in?
cheers,
Chris
Jonathan Cheyne wrote:
2.2.0 final, london, uk. And yes, I make use of fmt in order to rearrange the dates the brit way. I just checked and that seems to be the prob. If I display the yank way then all is ok. ah weel the work around is fairly easy for now.
I'm pretty sure this'll be fixed in 2.2.1 :-) cheers, Chris
participants (2)
-
Chris Withers -
Jonathan Cheyne