"Morten W. Petersen" wrote:
Evan Simpson wrote:
One of these calls...
"Morten W. Petersen" wrote:
<!--#call "REQUEST.set('hol_piece_starttimeperiod',_.int(ZopeTime(_.int(hol_piece_stp_year), _.int(hol_piece_stp_month),_.int(hol_piece_stp_day),0,0,0,timezone)))"-->
... is not like the other ...
<!--#call "REQUEST.set('hol_piece_endtimeperiod',ZopeTime(hol_piece_etp_year, hol_piece_etp_month,hol_piece_etp_day,0,0,0,timezone))"-->
... and that's why one doesn't work (hint: int)
Hrm. Point being, zope chokes on the first call. =) (Ignore the second one)
"Thanks in advance"
It seems there was a bug in the documentation on the DateTime module (DateTime.html) on Zope 1.x. <!--#call "REQUEST.set('hol_piece_starttimeperiod',_.int(ZopeTime(hol_piece_stp_year+'/'+ hol_piece_stp_month+'/'+hol_piece_stp_day+' 0:0:0 '+timezone)))"--> would be the correct way to do things.