bug? pagetemplate using strftime
Hi list, This is a bug in strftime? add to report to launchpad? <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> can someone confirm this? using a database postgresql 8.3 zope 2.11.1 windows 2003 ________________________________________ Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida
+-------[ Miguel Beltran R. ]---------------------- | Hi list, | | This is a bug in strftime? add to report to launchpad? | | <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> | | can someone confirm this? | using a database postgresql 8.3 | zope 2.11.1 | windows 2003 Zope DateTime objects revert to UTC when using strftime in all versions of Zope. It's known, and doesn't seem to be thought of as a bug. The response I received about this was something to the effect of "write your own DateTime" -- Andrew Milton akm@theinternet.com.au
I don't see any issue with that? If yes, provide the related output and what you expect and why? On Tue, Apr 21, 2009 at 04:33, Miguel Beltran R. <yourpadre@gmail.com>wrote:
Hi list,
This is a bug in strftime? add to report to launchpad?
<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>
can someone confirm this? using a database postgresql 8.3 zope 2.11.1 windows 2003
________________________________________ Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida
_______________________________________________ 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 )
Sorry, I not say clear where is the bug The original data is year 2009, month 01, day 10 2009/4/20 Miguel Beltran R. <yourpadre@gmail.com>
Hi list,
This is a bug in strftime? add to report to launchpad?
<tr tal:repeat="item container/getData"> <td tal:content="python: item.fecha.strftime('%d-%m-%Y');">09-01-2009</td>
Using strftime show day 09. Here is the error.
<td tal:content="item/fecha">2009/01/10</td>
Here the day show correctly
</tr>
can someone confirm this? using a database postgresql 8.3 zope 2.11.1 windows 2003
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry but your description is pretty weak. 'item.fetcha' is what kind of instance? DateTime? datetime? How to reproduce the behavior? We need something that works on any system. - - -aj Am 22.04.2009 um 01:56 schrieb Miguel Beltran R.:
Sorry, I not say clear where is the bug The original data is year 2009, month 01, day 10
2009/4/20 Miguel Beltran R. <yourpadre@gmail.com> Hi list,
This is a bug in strftime? add to report to launchpad?
<tr tal:repeat="item container/getData"> <td tal:content="python: item.fecha.strftime('%d-%m- %Y');">09-01-2009</td> Using strftime show day 09. Here is the error.
<td tal:content="item/fecha">2009/01/10</td> Here the day show correctly
</tr>
can someone confirm this? using a database postgresql 8.3 zope 2.11.1 windows 2003
_______________________________________________ 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 )
Mit freundlichen Grüßen/Kind regards, Andreas Jung - --- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK - ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAknupCYACgkQCJIWIbr9KYzlUQCfRfmRX+4S2f5J3/rbKYj7rY7E +1UAoJQL6qOcc1bT9SbxR+H62S5z1Evk =PZh0 -----END PGP SIGNATURE-----
participants (4)
-
Andreas Jung -
Andrew Milton -
filtered -
Miguel Beltran R.