Skip to content

Commit c4ae31b

Browse files
committed
Fix using time components inside tzinfo in Python implementation
1 parent 04a275a commit c4ae31b

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
@@ -467,8 +467,8 @@ def _parse_isoformat_time(tstr):
467467
else:
468468
tzsign = -1 if tstr[tz_pos - 1] == '-' else 1
469469

470-
td = timedelta(hours=hour, minutes=minute,
471-
seconds=second, microseconds=microsecond)
470+
td = timedelta(hours=tz_comps[0], minutes=tz_comps[1],
471+
seconds=tz_comps[2], microseconds=tz_comps[3])
472472

473473
tzi = timezone(tzsign * td)
474474

0 commit comments

Comments
 (0)