JDK-8034819 : Java Control Panel does not honor system date/time settings
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7,8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x,windows
  • CPU: x86
  • Submitted: 2014-02-08
  • Updated: 2016-08-03
  • Resolved: 2014-03-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u20Fixed 9 b08Fixed
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b128)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b69, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Darwin mbpr-claudio.lan 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64


A DESCRIPTION OF THE PROBLEM :
As you can see from the uuencoded screen.jpg screenshot, while the setting for date/time should show it as 15:40 on 2014-02-08 it shows it as 3:40 PM on 2/8/14.


REPRODUCIBILITY :
This bug can be reproduced always.


Comments
Reproduced on Windows too, same fix works. Fix is not applicable to Linux since there is no update panel on Linux.
25-02-2014

The fix for this is not applicable to 7u, so will fix for 8 and 9 only.
24-02-2014

We can add this property to the JCP launch script.
19-02-2014

Honoring the underlying OS's format patterns is a new feature in JDK8 and it is not activated by default. One solution is to invoke Java Control Panel with "java.locale.providers=HOST,JRE,SPI" system property will use the SHORT date/time format.
18-02-2014

We use DateFormat.getTimeInstance(DateFormat.SHORT) to create the date string, if that string is wrong then the bug is in DateFormat. I'm not sure what group handles that, will reassign when I can.
18-02-2014

The image attachment was not done properly so removing it from the bug description for sanity's sake.
17-02-2014