+-------[ Miguel Beltran R. ]---------------------- | | | 'item.fetcha' is what kind of instance? DateTime? datetime? | | How to reproduce the behavior? | | We need something that works on any system. | | | I don't know what type is. | How can know? | | | <tr tal:repeat="item container/getData"> | <td tal:content="python: item.fecha.strftime('%d-%m-%Y' | );">09-01-2009</td> | <td tal:content="item/fecha">2009/01/10</td> | </tr> | | getData is a zsql method what connect to postgresql using zpsycopgda 2.0 | conecction with enconding utf-8 serializable (with zope internal datetime | option enabled and disabled) and not work :( | | This problem happen too with ms sql server 2000 with zpyodbc. Using %d break | the day.
If you strftime to show the hour and minute too, you will see as I previously said it is showing you the time in UTC (as determined by how many hours is it out). -- Andrew Milton a...@theinternet.com.au _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )