@@ -0,0 +1,987 @@
+package com.alibaba.json.bvt.bug;%0A%0Aimport java.text.DateFormat;%0Aimport java.util.Date;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.parser.Feature;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class Bug_376_for_iso8601 extends TestCase %7B%0A%0A%09public void test_fix() %7B%0A%09%09%0A%09%09String s = %22%7Bdate: %5C%222015-07-22T19:13:42Z%5C%22%7D%22;%0A%09%09String s2 = %22%7Bdate: %5C%222015-07-22T19:13:42.000Z%5C%22%7D%22;%0A%09%09%0A%09%09MyObj o = JSON.parseObject(s, MyObj.class, Feature.AllowISO8601DateFormat);%0A%09%09MyObj o2 = JSON.parseObject(s2, MyObj.class, Feature.AllowISO8601DateFormat);%0A%09%09%0A%09%09System.out.println(DateFormat.getDateTimeInstance().format(o.getDate()));%0A%09%09System.out.println(DateFormat.getDateTimeInstance().format(o2.getDate()));%0A%09%09%0A%09%09//%E4%BF%AE%E5%A4%8D%E4%B9%8B%E5%89%8D%E8%BE%93%E5%87%BA%0A%09%09//2015-7-22 19:13:42%0A%09%09//2015-7-23 3:13:42%0A%09%09%0A%09%09//%E4%BF%AE%E5%A4%8D%E4%B9%8B%E5%90%8E%E8%BE%93%E5%87%BA%0A%09%09//2015-7-23 3:13:42%0A%09%09//2015-7-23 3:13:42%0A%09%09%0A%09%09%0A%09%7D%0A%0A%09static class MyObj %7B%0A%09%09private Date date;%0A%0A%09%09public Date getDate() %7B%0A%09%09%09return date;%0A%09%09%7D%0A%0A%09%09public void setDate(Date date) %7B%0A%09%09%09this.date = date;%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

添加bug_376测试