Skip to content

Commit 96b6c1a

Browse files
committed
A few more notes related to #1
1 parent 784d5f4 commit 96b6c1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Features:
55
- Zero dependency super minimal ISO8601 date parsing library. Alternatives were [too lax, inaccurate, huge on disk, or huge in bundle](https://fediverse.zachleat.com/@zachleat/114870836413532617).
66
- All dates supported by this library are RFC-9557 compatible (parseable by `Temporal.Instant.from` or `Temporal.PlainDateTime.from`) to prepare for wider [Temporal API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal) support.
77
- Note that this is not a full polyfill — not all RFC-9557 dates are supported here. Alternatives: [`temporal-polyfill`](https://github.com/fullcalendar/temporal-polyfill) or [`js-temporal/temporal-polyfill`](https://github.com/js-temporal/temporal-polyfill)
8-
- Defaults to UTC when time zone is unknown instead of local time
9-
- This matches previous behavior in Eleventy and this feature maintains consistency between build and deploy servers.
10-
- Supports +00:00 or -00:00 style time zone offsets
118
- Invalid strings throw errors.
9+
- Time zone notes:
10+
- Defaults to UTC when time zone is unknown (*not* local time). This matches previous behavior in Eleventy and this feature maintains consistency between build and deploy servers.
11+
- Supports `+00`, `+00:00`, `-00`, or `-00:00` style time zone offsets (`:` delimiter is optional)
1212
- Delimiter notes:
1313
- *Requires* the `T` delimiter with DateTime strings
1414
- Delimiters in dates (`-`) and times (`:`) are optional

0 commit comments

Comments
 (0)