This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git


The following commit(s) were added to refs/heads/master by this push:
     new 76b72ee8 Undo innadvertant change made while debugging Java 21 build
76b72ee8 is described below

commit 76b72ee8bbadfa5b0ef18bfe6dfaf2b07a8b47da
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 20 07:21:32 2023 -0400

    Undo innadvertant change made while debugging Java 21 build
---
 .../org/apache/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 623f36a4..387930cb 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 @@ public abstract class DateTimeConverter<D> extends 
AbstractConverter<D> {
     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);

Reply via email to