Skip to content

fix(duration): normalize ISO8601 time components - #3162

Open
Hashim1999164 wants to merge 1 commit into
iamkun:devfrom
Hashim1999164:fix/duration-iso8601-normalize-2985
Open

fix(duration): normalize ISO8601 time components#3162
Hashim1999164 wants to merge 1 commit into
iamkun:devfrom
Hashim1999164:fix/duration-iso8601-normalize-2985

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 15, 2026

Copy link
Copy Markdown

Summary

  • carry overflowing ISO8601 seconds into minutes and minutes into hours
  • preserve total duration values and existing large hour behavior
  • cover PT75M, PT70M, and PT90S with regression tests

Test plan

  • npx jest test/plugin/duration.test.js --coverage=false --runInBand
  • npx eslint src/plugin/duration/index.js test/plugin/duration.test.js

Fixes #2985

Carry overflowing seconds into minutes and minutes into hours when parsing ISO8601 duration strings.

Fixes iamkun#2985
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duration plugin registers iso8601 period formatted input wrongly

1 participant