[issue28565] datetime.strptime %Z doesn't get included in the result

2016-10-31 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list

[issue28565] datetime.strptime %Z doesn't get included in the result

2016-10-30 Thread lilydjwg
New submission from lilydjwg: With %z, the result gets a tzinfo, but with %Z, it succeeds but the result is without timezone info: >>> datetime.datetime.strptime('2016-10-31T03:58:24 CST', '%Y-%m-%dT%H:%M:%S >>> %Z') datetime.datetime(2016, 10, 31, 3, 58, 24) >>>