Opened 12 years ago
Closed 12 years ago
#9149 closed defect (duplicate)
dojo.date.stamp.fromISOString incorrectly handles TZ offset
Reported by: | Littlewood Ed | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Date | Version: | 1.3.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
dojo.date.stamp.fromISOString is requiring the ':' in the timezone offset. Per the spec, the colon is optional, but without it, fromISOString interprets the offset as seconds.
Attachments (1)
Change History (2)
Changed 12 years ago by
comment:1 Changed 12 years ago by
Component: | General → Date |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
formISOString does not implement the full ISO8601 spec, but only a subset, designed for speed. I believe this is accurately represented by the docs for dojo.date.stamp. Optional grammars and many features were left out by design.
See #9028