struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Date format change
Date Mon, 12 Nov 2018 09:04:16 GMT
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-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message