Skip to content

Commit c9db98b

Browse files
committed
Fix using time components inside tzinfo in Python implementation
1 parent 0b92a1c commit c9db98b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_pydatetime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,8 @@ def _parse_isoformat_time(tstr):
499499
else:
500500
tzsign = -1 if tstr[tz_pos - 1] == '-' else 1
501501

502-
td = timedelta(hours=hour, minutes=minute,
503-
seconds=second, microseconds=microsecond)
502+
td = timedelta(hours=tz_comps[0], minutes=tz_comps[1],
503+
seconds=tz_comps[2], microseconds=tz_comps[3])
504504

505505
tzi = timezone(tzsign * td)
506506

0 commit comments

Comments
 (0)