File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -721,7 +721,7 @@ z.string().regex(regex);
721
721
z .string ().includes (string );
722
722
z .string ().startsWith (string );
723
723
z .string ().endsWith (string );
724
- z .string ().datetime (); // defaults to UTC, see below for options
724
+ z .string ().datetime (); // ISO 8601; default is without UTC offset , see below for options
725
725
z .string ().ip (); // defaults to IPv4 and IPv6, see below for options
726
726
727
727
// transformations
@@ -760,7 +760,7 @@ z.string().ip({ message: "Invalid IP address" });
760
760
761
761
### ISO datetimes
762
762
763
- The ` z.string().datetime() ` method defaults to UTC validation: no timezone offsets with arbitrary sub-second decimal precision.
763
+ The ` z.string().datetime() ` method enforces ISO 8601; default is no timezone offsets and arbitrary sub-second decimal precision.
764
764
765
765
``` ts
766
766
const datetime = z .string ().datetime ();
You can’t perform that action at this time.
0 commit comments