Re: [Zope-dev] Datebug?
try this:
<input type="text" value="<dtml-var "date+0.5" fmt=%Y-%m-%d>">
I think it's a round problem with the float representation of the date.
martin
Since it is adding 24 hours there is not enough to add 0.5 to the date. I could add 1 to the date but then I would get other problems on my site which is not good. I have reported the bug now and I hope they can resolve it quickly.
Peter Arvidsson wrote:
try this:
<input type="text" value="<dtml-var "date+0.5" fmt=%Y-%m-%d>">
I think it's a round problem with the float representation of the date.
martin
Since it is adding 24 hours
Are you _sure_ it is adding 24 hours? The string you gave only shows date, not time. Try showing the time as well, and see what happens. I had a similiar problem once, thought this might be of some use. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password.
participants (2)
-
Bill Anderson -
Peter Arvidsson