You can't use stftime.
You have to manually build a string with the format you want using the
other methods inside DateTime.
e.g. fetcha.aCommonZ() or build up your date using
components such as; fetcha.day() fetcha.month() fetcha.year()
I made a script what recive a parameter
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).
I made a test with date 2009/05/07 using
dtml-var fecha.timezone -- dmYzZ=dtml-var fecha fmt=%d/%m/%Y %z %Z
-- c=dtml-var fecha
+---[ Miguel Beltran R. ]--
|
|
| 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).
|
|
|
| I made a test with date 2009/05/07 using
|
'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
+---[ 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
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. yourpa...@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:
-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
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/fecha2009/01/10/td
/tr
can someone confirm this?
using a database postgresql 8.3
zope 2.11.1
windows
+---[ 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/fecha2009/01/10/td
| /tr
|
| can
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. yourpa...@gmail.comwrote:
Hi list,
This is a bug in strftime? add to report to launchpad?
tr tal:repeat=item container/getData
td
10 matches
Mail list logo