mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-29 06:06:50 +08:00
@@ -3,9 +3,7 @@ package com.alibaba.json.bvt;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.sql.Date;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Locale;
|
||||
import java.util.TimeZone;
|
||||
@@ -13,8 +11,8 @@ import java.util.TimeZone;
|
||||
public class SqlTimestampTest
|
||||
extends TestCase {
|
||||
protected void setUp() throws Exception {
|
||||
JSON.defaultTimeZone = TimeZone.getTimeZone("Asia/Shanghai");
|
||||
JSON.defaultLocale = new Locale("zh_CN");
|
||||
JSON.defaultTimeZone = TimeZone.getDefault();
|
||||
JSON.defaultLocale = Locale.getDefault();
|
||||
}
|
||||
|
||||
public void test_date() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user