[issue38139] [BUG] datetime.strptime could not handle timezone

2019-09-12 Thread Paul Ganssle
Paul Ganssle added the comment: Hi Yixing, thank you for your bug report. This issue has already been reported, and the discussion is in issue #22377. In the short term I believe the solution will be to document the current behavior. In the long term there are some solutions, though I

[issue38139] [BUG] datetime.strptime could not handle timezone

2019-09-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be same as issue22377 where UTC, GMT and value time.tzname in the machine are the supported values. -- nosy: +xtreak ___ Python tracker

[issue38139] [BUG] datetime.strptime could not handle timezone

2019-09-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38139] [BUG] datetime.strptime could not handle timezone

2019-09-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38139] [BUG] datetime.strptime could not handle timezone

2019-09-12 Thread Yixing Jiang
New submission from Yixing Jiang : datetime.datetime.strptime throws out an error for me, to reproduce, use the following block: ``` >>> import datetime >>> import pytz >>> d2 = datetime.datetime(2019, 9, 11, 18, 35, 17, 334000, >>> tzinfo=pytz.timezone('CET')) >>>