Skip to content

Commit 19b693c

Browse files
FrankYFTangptomato
authored andcommitted
Fix problem in ParseISODateTime and ParseTemporalTimeZoneString
1. Add TimeZoneUTCOffsetFractionalPart
1 parent 8b441ac commit 19b693c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

spec/abstractops.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,12 @@ <h1>ISO 8601 grammar</h1>
858858
MinuteSecond
859859
`60`
860860

861-
TimeFractionalPart :
861+
FractionalPart :
862862
Digit Digit? Digit? Digit? Digit? Digit? Digit? Digit? Digit?
863863

864+
TimeFractionalPart :
865+
FractionalPart
866+
864867
Fraction :
865868
DecimalSeparator TimeFractionalPart
866869

@@ -879,8 +882,11 @@ <h1>ISO 8601 grammar</h1>
879882
TimeZoneUTCOffsetSecond :
880883
MinuteSecond
881884

885+
TimeZoneUTCOffsetFractionalPart:
886+
FractionalPart
887+
882888
TimeZoneUTCOffsetFraction :
883-
Fraction
889+
DecimalSeparator TimeZoneUTCOffsetFractionalPart
884890

885891
TimeZoneNumericUTCOffset :
886892
TimeZoneUTCOffsetSign TimeZoneUTCOffsetHour
@@ -1422,7 +1428,7 @@ <h1>ParseTemporalTimeZoneString ( _isoString_ )</h1>
14221428
1. Assert: Type(_isoString_) is String.
14231429
1. If _isoString_ does not satisfy the syntax of a |TemporalTimeZoneString| (see <emu-xref href="#sec-temporal-iso8601grammar"></emu-xref>), then
14241430
1. Throw a *RangeError* exception.
1425-
1. Let _z_, _sign_, _hours_, _minutes_, _seconds_, _fraction_ and _name_ be the parts of _isoString_ produced respectively by the |UTCDesignator|, |TimeZoneUTCOffsetSign|, |TimeZoneUTCOffsetHour|, |TimeZoneUTCOffsetMinute|, |TimeZoneUTCOffsetSecond|, |TimeZoneUTCOffsetFraction|, and |TimeZoneIANAName| productions, or *undefined* if not present.
1431+
1. Let _z_, _sign_, _hours_, _minutes_, _seconds_, _fraction_ and _name_ be the parts of _isoString_ produced respectively by the |UTCDesignator|, |TimeZoneUTCOffsetSign|, |TimeZoneUTCOffsetHour|, |TimeZoneUTCOffsetMinute|, |TimeZoneUTCOffsetSecond|, |TimeZoneUTCOffsetFractionalPart|, and |TimeZoneIANAName| productions, or *undefined* if not present.
14261432
1. If _z_ is not *undefined*, then
14271433
1. Return the Record {
14281434
[[Z]]: *true*,

0 commit comments

Comments
 (0)