Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c67f88b

Browse files
shahatapkozlowski-opensource
authored andcommitted
doc(filter): support timezones other than UTC
Closes #10999
1 parent cbedff0 commit c67f88b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ng/filter/filters.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,9 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d
393393
* specified in the string input, the time is considered to be in the local timezone.
394394
* @param {string=} format Formatting rules (see Description). If not specified,
395395
* `mediumDate` is used.
396-
* @param {string=} timezone Timezone to be used for formatting. Right now, only `'UTC'` is supported.
396+
* @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the
397+
* continental US time zone abbreviations, but for general use, use a time zone offset, for
398+
* example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
397399
* If not specified, the timezone of the browser will be used.
398400
* @returns {string} Formatted string or the input if input is not recognized as date/millis.
399401
*

0 commit comments

Comments
 (0)