File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,8 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+
298
298
*
299
299
* @param {(Date|number|string) } date Date to format either as Date object, milliseconds (string or
300
300
* number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.SSSZ and it's
301
- * shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ).
301
+ * shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is
302
+ * specified in the string input, the time is considered to be in the local timezone.
302
303
* @param {string= } format Formatting rules (see Description). If not specified,
303
304
* `mediumDate` is used.
304
305
* @returns {string } Formatted string or the input if input is not recognized as date/millis.
You can’t perform that action at this time.
0 commit comments