提交 69fb121c 编写于 作者: 高铁

bug fix for issue #2580

上级 77315628
......@@ -55,7 +55,7 @@ public class DateCodec extends AbstractDateDeserializer implements ObjectSeriali
long millis = ((java.sql.Date) object).getTime();
TimeZone timeZone = serializer.timeZone;
int offset = timeZone.getOffset(millis);
if (millis % offset == 0) {
if (offset == 0 || millis % offset == 0) {
out.writeString(object.toString());
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册