[New-bugs-announce] [issue22994] datetime buggy
santhosh
report at bugs.python.org
Thu Dec 4 11:30:01 CET 2014
New submission from santhosh:
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
----------
messages: 232119
nosy: santhoshch
priority: normal
severity: normal
status: open
title: datetime buggy
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22994>
_______________________________________
More information about the New-bugs-announce
mailing list