I'm displaying dates retrieved from a MySQL database using:

<span tal:content="python: news['Date'].strftime('%d/%m/%Y')">Date</span>

In a strange behaviour using strftime is displaying dates with 1 day past, example 10/05/2005 is being show as 09/05/2005.

If i change the code to show the date as it comes from MySQL it is correct and if I change the code to not use strftime and manually retrieve .month() .day() .year() it is also correct.

My locale in Zope is set to BRT and in console everything works.

Zope 2.7 and Pthin 2.3 from debian sarge.


Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet
+55 11 6959-7610
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to