I found a solution:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/aea64448eaca4778/250e908652e2646d
If I use datetime.now(tz=tz) instead of datetime(Y,M,D,h,m,s,
tzinfo=tz), it works.
On Jul 3, 4:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Nah, it's got to be
Nah, it's got to be something more than that. A bunch of them are
screwed up. It's showing America/Saskatchewan as UTC-06:59.
I think there's something wrong with my code. I've put it up at a
pastebin so that it's easier to read.
http://pastebin.ca/1061776
On Jul 2, 11:22 am, Mensanator <[EMA
On Jul 2, 12:43 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'm trying to write some code to deal with world timezones, and I'm
> getting a strange result. America/Iqaluit should not be showing up in
> UTC+00:00, but it is. Can anyone see what's wrong with this code?
>
> import time
> fr
I'm trying to write some code to deal with world timezones, and I'm
getting a strange result. America/Iqaluit should not be showing up in
UTC+00:00, but it is. Can anyone see what's wrong with this code?
import time
from datetime import datetime
import os
import pytz
def getZoneNamesOnThisComp