Wrong locale with recent java on NMC (from nw 8.0.2.4)
With recent Oracle java versions, 1.7.0.45 being the latest, the time (and date) does not use the correct format provided by the LANG (or LC_ALL) environment.
I have been using en_GB.utf8 as the locale LANG setting and I have gotten the correct 24H time and dd/mm/yyyy date format. But the latest java-version, where this works is 1.7.0.21.
I use this on linux, but have also tested it on windows and the same problem is there.
It seems, that the only thing the locale is affecting is the language of the am/pm suffix. (Swedish. 09:30 fm, 11:00 em or Finnish 08:45 ap, 02:25 ip) This is so pathetic...
Will this be fixed? It is not really cool to use an old buggy and insecure version just to make this basic thing to work.
Please consider moving this question as-is (no need to recreate) to the proper forum for maximum visibility. Questions written to the users' own "Discussions" space don't get the same amount of attention and can go unanswered for a long time.
You can do so by selecting "Move" under ACTIONS along the upper-right. Then search for and select: "NetWorker Support Forum".
But there is no difference. Still the same effect. The LANG env only defines what is the language of the am/pm suffix.
On windows there is a difference, but this is probably expected. With the formatasdefault=true I do get the localized version of the am/pm suffix, but with false (or without it) I get AM/PM. But still no possibility to get the 24 hour time format.
Funny enough - I have seen this also on one server in Sweden, but it only affects time in messages window. We checked against logs and there all is ok so we don't bother much, but I might check it more in depth this week.
This problem is (at least for me) solved by using OpenJDK (1.7.0.60) and the icedtea (1.4.1) webstart plugin on linux. Didn't have any luck with Open-JDK and NMC previously, but now it seems to work flawlessy!
Also understand from other sources, that the time/date format problem on Oracle Java is fixed in nw 8.1.
christopher_ime
6 Operator
•
1962 Posts
686
0
Posted November 9th, 2013 10:00
Please consider moving this question as-is (no need to recreate) to the proper forum for maximum visibility. Questions written to the users' own "Discussions" space don't get the same amount of attention and can go unanswered for a long time.
You can do so by selecting "Move" under ACTIONS along the upper-right. Then search for and select: "NetWorker Support Forum".
NetWorker Support Forum