diff --git a/README.md b/README.md index 938df6ba6..1996dfada 100644 --- a/README.md +++ b/README.md @@ -721,7 +721,7 @@ z.string().regex(regex); z.string().includes(string); z.string().startsWith(string); z.string().endsWith(string); -z.string().datetime(); // defaults to UTC, see below for options +z.string().datetime(); // ISO 8601; default is without UTC offset, see below for options z.string().ip(); // defaults to IPv4 and IPv6, see below for options // transformations @@ -760,7 +760,7 @@ z.string().ip({ message: "Invalid IP address" }); ### ISO datetimes -The `z.string().datetime()` method defaults to UTC validation: no timezone offsets with arbitrary sub-second decimal precision. +The `z.string().datetime()` method enforces ISO 8601; default is no timezone offsets and arbitrary sub-second decimal precision. ```ts const datetime = z.string().datetime();