19 Mar
2000
19 Mar
'00
4:44 a.m.
Graham Chiu wrote:
I want to add an hour to a date...
this doesn't work
Closedate is: <dtml-var "closedate.aCommon()"><br> <dtml-call "REQUEST.set('newdate',closedate+1/24)"> Closedate + 1 hour is: <dtml-var "newdate.aCommon()"><br>
I think integer division was covered last week on this mailing list. Change 1/24 to 1.0/24 (the upshot is 1/24 is evaluating to 0). Regards, Daryl Tester