Fix my mistake

This commit is contained in:
Gary Gregory 2023-01-10 15:57:08 -05:00
parent 6d38ed9290
commit af27d810d3

View File

@ -411,7 +411,7 @@ public static String formatUTC(final long millis, final String pattern, final Lo
}
private static TimeZone getTimeZone(final Calendar calendar) {
return ObjectUtils.get(calendar, Calendar::getTimeZone);
return calendar == null ? null : calendar.getTimeZone();
}
}