[Zope] bug? pagetemplate using strftime

Andrew Milton akm at theinternet.com.au
Wed Apr 22 19:21:44 EDT 2009


+-------[ 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
akm at theinternet.com.au


More information about the Zope mailing list