Dates displayed incorrectly (mm-dd-yyyy) when using Java 1.7
search cancel

Dates displayed incorrectly (mm-dd-yyyy) when using Java 1.7

book

Article ID: 90051

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Affects Release version(s): null

Dates displayed incorrectly (mm-dd-yyyy) when using Java 1.7

Environment

Release:
Component: AAUTEN

Resolution

Symptoms

When using Java 1.6 (32 bit) dates used to be displayed as dd-mm-yyyy but on Java 1.7 (32 bit) dates are displayed as mm/dd/yyyy.

When starting Userinterface with the following command in ucdj.ini:
cmd="C:\Program Files (x86)\uc4\UserInterface\Java_1.6\bin\javaw" -Xmx1024m com.uc4.ucdf.UCDialogFactory -U%User%
then the dates are show "correct", DD/MM/YYYY

If I start Userinterface with the following command in ucdj.ini:
cmd="C:\Program Files (x86)\uc4\UserInterface\Java_1.7\bin\javaw" -Xmx1024m com.uc4.ucdf.UCDialogFactory -U%User%
then the dates are show "incorrect, MM-DD-YYYY


Cause

Unknown at the moment, maybe a bug of verion 1.7 of Java.


Resolution

The problem is in the UCDJ.INI file. The parameter to start is like this (which is OK when using Java 1.6):

cmd="C:\Program Files (x86)\uc4\userinterface\Java\bin\javaw" -Xmx1024m com.uc4.ucdf.UCDialogFactory -U%User%

but if using Java 1.7 then you have to add -Dsun.locale.formatasdefault=true. Like this:

cmd="C:\Program Files (x86)\uc4\userinterface\Java\bin\javaw" -Dsun.locale.formatasdefault=true -Xmx1024m com.uc4.ucdf.UCDialogFactory -U%User%