Skip to content

Commit deac80a

Browse files
committed
docs(date): add missing doc about TZ behavior
1 parent 0539611 commit deac80a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/filter/filters.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+
298298
*
299299
* @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or
300300
* 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.
302303
* @param {string=} format Formatting rules (see Description). If not specified,
303304
* `mediumDate` is used.
304305
* @returns {string} Formatted string or the input if input is not recognized as date/millis.

0 commit comments

Comments
 (0)