Skip to content

Commit 8bbaaa7

Browse files
committed
Enhance comment
1 parent 275a403 commit 8bbaaa7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: packages/use-intl/src/core/createFormatter.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ export default function createFormatter({
147147
}
148148

149149
function dateTime(
150-
/** If a number is supplied, this is interpreted as a UTC timestamp. */
150+
/** If a number is supplied, this is interpreted as a UTC timestamp.
151+
* If a string is supplied, this is interpreted as an ISO 8601 string. */
151152
value: Date | number | string,
152153
/** If a time zone is supplied, the `value` is converted to that time zone.
153154
* Otherwise the user time zone will be used. */

0 commit comments

Comments
 (0)