[Zope] Patch to DateTime.py
Rajil Saraswat
rajil@iitk.ac.in
Fri, 7 Jul 2000 16:42:13 +0530 (IST)
Hi,
I am a newbie to zope and squish. My squishdot starts giving errors after
midnight. the offending error is Unrecognised Time Zone in DateTime.py
I am on GMT+530(India). As i donot know python, can you please tell where
i should add this timezone in DateTime.py, so this problem is resolved.
Thanks
Rajil Saraswat
On Fri, 7 Jul 2000, Curtis Maloney wrote:
> Greetings,
>
> In my current project, I have to print a lot of dates. Fine, not a
> problem... _.DateTime().strftime() is just the method, right?
>
> Wrong.
>
> The people who want this site want the local time, not UTC+0 that strftime
> enforces.
>
> So, I created a tiny patch which adds _.DateTime().strfltime(), which works
> identically, except it passes LOCALTIME instead of GMTIME.
>
> It's tiny, it's simple, but it's REALLY HANDY!
>
> Have a better one,
> Curtis Maloney.
>
> <dtml-var standard_work_disclaimer>
>