Hi: If I use this line in a Python script: print row['end_date'], row['end_date'].strftime('%d') I get: 2005/10/13 12 You can see the day is out by one. Should be 13, but is gets converted as 12. So I'm curious what's up with that? Zope Version (Zope 2.8.1-final, python 2.4.0, freebsd5) Python Version 2.4 (#2, Aug 25 2005, 15:17:08) [GCC 3.4.2 [FreeBSD] 20040728] Thanks, Jason. -- ........................................ .... Jason C. Leach .... PGP Key: 0x62DDDF75 .... Keyserver: gpg.mit.edu
--On 13. Oktober 2005 14:46:26 -0700 "Jason C. Leach" <jason.leach@gmail.com> wrote:
Hi:
If I use this line in a Python script: print row['end_date'], row['end_date'].strftime('%d') I get: 2005/10/13 12
You can see the day is out by one. Should be 13, but is gets converted as 12. So I'm curious what's up with that?
Provide a detailed description how to reproduce that...especially what type is row[‘end_date‘]? Where is it coming from? -aj
participants (2)
-
Andreas Jung -
Jason C. Leach