diff options
| author | Igor Minar | 2010-11-08 09:05:48 -0800 | 
|---|---|---|
| committer | Igor Minar | 2010-11-08 22:49:30 -0800 | 
| commit | e5c135ac50bfb463895c71a9b83267e9ca836c7b (patch) | |
| tree | 1130899dc2c48f2e3f1087d106597fcc00ebff5d /src/filters.js | |
| parent | 1a43f36e2395c77005fd14fafd43808548b111f2 (diff) | |
| download | angular.js-e5c135ac50bfb463895c71a9b83267e9ca836c7b.tar.bz2 | |
Support ISO 8601 extended datetime format troughout angular.
Support ISO 8601 extended format datetime strings (YYYY-MM-DDTHH:mm:ss.SSSZ) as defined
  in EcmaScript 5 throughout angular. This means that the following apis switched from
  YYYY-MM-DDTHH:mm:ssZ to YYYY-MM-DDTHH:mm:ss.SSSZ (note the added millis) when representing dates:
  - angular.Date.toString
  - angular.String.toDate
  - JSON serialization and deserialization (used by json filter, $xhr and $resource)
Diffstat (limited to 'src/filters.js')
| -rw-r--r-- | src/filters.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/filters.js b/src/filters.js index ee0ef076..a166abad 100644 --- a/src/filters.js +++ b/src/filters.js @@ -169,7 +169,7 @@ var NUMBER_STRING = /^\d+$/;   *   * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200‒1200)   *   * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or - *    number) or ISO 8601 string (yyyy-MM-ddTHH:mm:ssZ). + *    number) or ISO 8601 extended datetime string (yyyy-MM-ddTHH:mm:ss.SSSZ).   * @param {string=} format Formatting rules. If not specified, Date#toLocaleDateString is used.   * @returns {string} Formatted string or the input if input is not recognized as date/millis.   * | 
