I tested the usecase

<s:date name="#myBean.myDate" format="EEEE, dd MMM hh:mm aa" />

struts.date.formatter=dateTimeFormatter >> Too many pattern letters: a

struts.date.formatter=simpleDateFormatter >> Wednesday, 23 Feb 12:00 PM

Looks good to me.

roll RC3😁

On 23/02/2022 06:19, Lukasz Lenart wrote:
wt., 22 lut 2022 o 15:07 Greg Huber <gregh3...@gmail.com> napisał(a):
Date is fine.

The org.apache.struts2.components.Date class can handle other types ie
LocalDateTime, LocalDate, Instant bean types, I can only test the
java.util.Date variant.

(..saying that, it would most probably work as LocalDate is the only new
variant introduced on this change.)

It works well for me.  Thanks.
Ah, ok! The main change here is to support for different formatters,
the case you had reported with "aa" vs "a":

<s:date name="#my.myDate" format="EEEE MMMM dd, hh:mm aa" /> <-- this
will work with simple formatter

<s:date name="#my.myDate" format="EEEE MMMM dd, hh:mm a" /> <-- this
will work with date/time formatter

If you are good, I will merge this PR and forge a new RC :)


Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to