Skip to content

Commit

Permalink
Use non-synchronized getTimeZone in TimestampUtils (#2451)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeslaCN committed Feb 16, 2022
1 parent 95d3ea7 commit beeabe2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public class TimestampUtils {
// This calendar is used when user provides calendar in setX(, Calendar) method.
// It ensures calendar is Gregorian.
private final Calendar calendarWithUserTz = new GregorianCalendar();
private final TimeZone utcTz = TimeZone.getTimeZone("UTC");
private final TimeZone utcTz = TimeZone.getTimeZone(ZoneOffset.UTC);

private @Nullable Calendar calCache;
private int calCacheZone;
Expand Down

0 comments on commit beeabe2

Please sign in to comment.