This issue has been created
 
 
JIRA Components / cid:jira-generated-image-avatar-6d66f949-c4fe-438b-a616-27455347dce8 JIRA-60 Open

the date parser shouldn't use the system locale

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d8cadbe4-35f5-4eb2-95d2-5fa11e48f957 Simon Urli created this issue on 18/Dec/24 11:41
 
Summary: the date parser shouldn't use the system locale
Issue Type: cid:jira-generated-image-avatar-6d66f949-c4fe-438b-a616-27455347dce8 Improvement
Affects Versions: 9.0
Assignee: Unassigned
Components: Macro
Created: 18/Dec/24 11:41
Priority: cid:jira-generated-image-static-minor-074c302e-3121-4484-9f68-39ca1f6ef0e0 Minor
Reporter: Simon Urli
Description:

Right now the date parser we use in AbstractDateJIRAFieldDisplayer doesn't have a specified locale, so it relies on the system locale.
This can be a problem if the system locale is different from the info sent by JIRA.
This is already immediately visible when running the integration tests on a system using a different locale than english: the integration are currently failing.

Apparently the XML returned by JIRA expose a language field: we could use it as a source of the locale for the parser, but we should check first that a JIRA configured to not use english would then provide a different format of dates in the returned result (it's my expectation, but to be tested). If that's the case then, this is a real bug.

If it's not the case, then we should probably always force the locale to be in english.