From 788838199113d99cab42c5044c65287ea7e1429b Mon Sep 17 00:00:00 2001 From: wood1986 Date: Sun, 18 Aug 2013 01:43:48 +0800 Subject: [PATCH] Update layouts.js --- lib/layouts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/layouts.js b/lib/layouts.js index eb07c89..9cfd035 100644 --- a/lib/layouts.js +++ b/lib/layouts.js @@ -167,6 +167,8 @@ function patternLayout (pattern, tokens) { // Pick up special cases if (format == "ISO8601") { format = dateFormat.ISO8601_FORMAT; + } else if (format == "ISO8601_WITH_TZ_OFFSET") { + format = dateFormat.ISO8601_WITH_TZ_OFFSET_FORMAT; } else if (format == "ABSOLUTE") { format = dateFormat.ABSOLUTETIME_FORMAT; } else if (format == "DATE") {