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?
Peter Arvidsson wrote:
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?
It could be one of a number of bugs. :( What version of Zope are you using? Try 2.2 and see fi it still happens... cheers, Chris
Forgot to say that... I run 2.2 final :/ Chris Withers skrev:
Peter Arvidsson wrote:
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?
It could be one of a number of bugs. :(
What version of Zope are you using?
Try 2.2 and see fi it still happens...
cheers,
Chris
Hi Peter, I had the same problem. The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(), year(), etc. do not. So I used them. Peter Arvidsson wrote:
Forgot to say that... I run 2.2 final :/
Chris Withers skrev:
Peter Arvidsson wrote:
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?
It could be one of a number of bugs. :(
What version of Zope are you using?
Try 2.2 and see fi it still happens...
cheers,
Chris
_______________________________________________ Zope maillist - Zope@zope.org 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 )
-- * Anyone sending unwanted advertising e-mail to this address will be charged $25 for network traffic and computing time. By extracting my address from this message or its header, you agree to these terms. * Hiermit widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung gemaess Paragraph 28 Absatz 3 des Bundesdatenschutzgesetzes.
Erich Seifert wrote:
I had the same problem. The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(), year(), etc. do not. So I used them.
That's really horrible, I'd chuck it in the collector: http://classic.zope.org:8080/Collector/ cheers, Chris
The most hirrible thing is that I chunked it in the collector but the Zope developers rejected it! Apparently they seem to claim this is a feature. Feature or not I can't use dates in forms because of this. Peter Chris Withers skrev:
Erich Seifert wrote:
I had the same problem. The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(), year(), etc. do not. So I used them.
That's really horrible, I'd chuck it in the collector: http://classic.zope.org:8080/Collector/
cheers,
Chris
What was the issue number? Chris Peter Arvidsson wrote:
The most hirrible thing is that I chunked it in the collector but the Zope developers rejected it! Apparently they seem to claim this is a feature. Feature or not I can't use dates in forms because of this.
Peter
Chris Withers skrev:
Erich Seifert wrote:
I had the same problem. The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(), year(), etc. do not. So I used them.
That's really horrible, I'd chuck it in the collector: http://classic.zope.org:8080/Collector/
cheers,
Chris
#1445 (http://classic.zope.org:8080/Collector/1445/view) Chris Withers skrev:
What was the issue number?
Chris
Peter Arvidsson wrote:
The most hirrible thing is that I chunked it in the collector but the Zope developers rejected it! Apparently they seem to claim this is a feature. Feature or not I can't use dates in forms because of this.
Peter
Chris Withers skrev:
Erich Seifert wrote:
I had the same problem. The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(), year(), etc. do not. So I used them.
That's really horrible, I'd chuck it in the collector: http://classic.zope.org:8080/Collector/
cheers,
Chris
participants (3)
-
Chris Withers -
Erich Seifert -
Peter Arvidsson