From 21aebbde33be0d533d22d6fa2ce9a3dfbbd4a57f Mon Sep 17 00:00:00 2001 From: wood1986 Date: Tue, 13 Aug 2013 23:04:11 +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 b171cee..35b2aee 100644 --- a/lib/layouts.js +++ b/lib/layouts.js @@ -166,6 +166,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") {