From fa0c5142bd6fe975d1b52a0b056c41e6e6211723 Mon Sep 17 00:00:00 2001 From: Shahar Talmi Date: Sat, 7 Feb 2015 00:31:32 +0200 Subject: [PATCH] doc(filter): support timezones other than UTC --- src/ng/filter/filters.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ng/filter/filters.js b/src/ng/filter/filters.js index 86ff54db1d64..657d29ed7a91 100644 --- a/src/ng/filter/filters.js +++ b/src/ng/filter/filters.js @@ -393,7 +393,9 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d * specified in the string input, the time is considered to be in the local timezone. * @param {string=} format Formatting rules (see Description). If not specified, * `mediumDate` is used. - * @param {string=} timezone Timezone to be used for formatting. Right now, only `'UTC'` is supported. + * @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the + * continental US time zone abbreviations, but for general use, use a time zone offset, for + * example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian) * If not specified, the timezone of the browser will be used. * @returns {string} Formatted string or the input if input is not recognized as date/millis. *