Ok, found it
https://bugs.openjdk.java.net/browse/JDK-8206961

tldr; some date formats have changed since JDK9 as a result of using
the Unicode Consortium's Common Locale Data Repository (CLDR)

To persist an old behaviour, the following flag must be defined
-Djava.locale.providers=COMPAT, CLDR


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

pon., 12 lis 2018 o 10:04 Lukasz Lenart <lukaszlen...@apache.org> napisał(a):
>
> Hi,
>
> As I'm working on adding support for JDK9 & 11 I found an issue with
> datetime formatting. Here it is an example code:
>
> System.out.println(SimpleDateFormat.getDateTimeInstance(DateFormat.MEDIUM,
> DateFormat.MEDIUM, Locale.UK).format(new Date()));
>
> and under JDK8 it will produce:
> 12-Nov-2018 09:56:41
>
> but under JDK9 it will be
> 12 Nov 2018, 09:57:47
>
> I cannot find anything related to this change. I wonder maybe we
> should use [1] to support LocalDate in Java7, wdyt?
>
> [1] https://www.threeten.org/threetenbp/
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/

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

Reply via email to