I have encountered a strange and irritating problem. As I live in Sweden
we use timezone 'GMT+1'. I have a form like this:
<dtml-var standard_html_header>
<form action="a">
<input type="text" size="15" name="date:date" value="<dtml-var ZopeTime
fmt=%Y-%m-%d>">
<input type="submit">
</form>
<dtml-var standard_html_footer>
And when I press submit I come to this page:
<dtml-var standard_html_header>
<input type="text" value="<dtml-var date fmt=%Y-%m-%d>">
<dtml-var standard_html_footer>
The input field are correctly displaying the date (in GMT+1) but when I
submit the form and use the "fmt" the date is displayed with a decrease
of 24 hours. Like if I write 2000-07-21 in the input-field the next page
will display 2000-07-20. I I dont format the date on the second page the
same date will be shown.
It cant really be a timezone issue because it is decreasing the date by
24 hours and I only live 1 hour from GMT. The date on my computer and
the server are correct. Does someone knows why this happens when I use
"fmt" or is this a DateTime bug?
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )