Pre-condition: Set JVM's locale different from User's locale.
a) To set JVM locale: pass JVM runtime parameters, user.country and user.language. Eg: set Romania's locale
-Duser.country=RO
-Duser.language=ro
b) To set user locale: Login into Aqua Data Server, go to Settings > Edit Settings > Display Information > Language Eg: set US english
Engish (US)
Steps:
Step 1) Scheduled Jobs > New Job
Step 2) Enter a name, "test" and select any AquaScript
Step 3) Select Occurrence "Daily" and specify a start date using the calendar component
Step 4) Click Save.
An error message is displayed "Please choose a Start date/time". Please see the screenshot
122 KB
Similar date parsing issue happens in following scenarios as well:
Scenario 1) Admin > System Settings > Delete Activities
Scenario 2) Admin > Login Attempts > Delete
Dev note:
The issue was cause by creating SimpleDateFormat without specifying the user's Locale, new SimpleDateFormat(dateTimePattern); Without setting user locale, date format instance was using JVM's locale and hence parsing errors when the JVM's locale is different.
The fix is to create date format as follows:
new SimpleDateFormat(dateTimePattern, getLocale());
Dev note:
The issue was cause by creating SimpleDateFormat without specifying the user's Locale, new SimpleDateFormat(dateTimePattern); Without setting user locale, date format instance was using JVM's locale and hence parsing errors when the JVM's locale is different.
The fix is to create date format as follows:
new SimpleDateFormat(dateTimePattern, getLocale());
问题 #2969 |
结案 |
已解决 |
解决 |
完成 |
无到期日 |
修正版 v17 branch r50495, US Trunk r50494 |
无预计时间 |
Similar date parsing issue happens in following scenarios as well:
Scenario 1) Admin > System Settings > Delete Activities
Scenario 2) Admin > Login Attempts > Delete