Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
bug fix for issue #2580
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jul 31, 2019
1 parent 7731562 commit 69fb121
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void write(JSONSerializer serializer, Object object, Object fieldName, Ty
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;
}
Expand Down

0 comments on commit 69fb121

Please sign in to comment.