From 76b72ee8bbadfa5b0ef18bfe6dfaf2b07a8b47da Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 20 Oct 2023 07:21:32 -0400 Subject: [PATCH] Undo innadvertant change made while debugging Java 21 build --- .../commons/beanutils2/converters/DateTimeConverter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java b/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java index 623f36a4a..387930cbc 100644 --- a/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java +++ b/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java @@ -305,9 +305,9 @@ protected T convertToType(final Class targetType, final Object value) thr protected DateFormat getFormat(final Locale locale, final TimeZone timeZone) { DateFormat format = null; if (locale == null) { - format = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); + format = DateFormat.getDateInstance(DateFormat.SHORT); } else { - format = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale); + format = DateFormat.getDateInstance(DateFormat.SHORT, locale); } if (timeZone != null) { format.setTimeZone(timeZone);