This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author santhoshch
Recipients santhoshch
Date 2014-12-04.10:30:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417689001.58.0.198336603717.issue22994@psf.upfronthosting.co.za>
In-reply-to
Content
val=datetime.datetime.strptime("2015-02-01",'%Y-%m-%d').date()
zon=pytz.timezone('US/Pacific')
dt=datetime.datetime(val.year,val.month,val.day, tzinfo=zon)
print dt,zon


output:
2015-02-01 00:00:00-07:53 US/Pacific

output should be
2015-02-01 00:00:00-08:00 US/Pacific
History
Date User Action Args
2014-12-04 10:30:01santhoshchsetrecipients: + santhoshch
2014-12-04 10:30:01santhoshchsetmessageid: <1417689001.58.0.198336603717.issue22994@psf.upfronthosting.co.za>
2014-12-04 10:30:01santhoshchlinkissue22994 messages
2014-12-04 10:30:01santhoshchcreate