SPIKE: Find the approach for how to format dates in patron notice templates

Description

Dates in patron notice templates should be formatted based on tenant-selected locale in the same way as it is done on UI.
Example localization code on UI:

In scope of this spike the approach for dates internalization should found for java platform.

Acceptance criteria: found approach is described in comments under this story on in wiki page.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Dmytro Tur September 16, 2019 at 1:26 PM

Proposed approach: use ICU4J that is a set of Java libraries that provides more comprehensive support for Unicode, software globalization, and internationalization. This library can be added as maven dependecy. ICU4J provides classes for dates formatting with the same names as in java core, so to adapt it into the application, you need to change imported packages from java.* to com.ibm.icu.*
Example of code:

Example of the output for en-SE locale: "2019-09-16, 16:19".

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created September 13, 2019 at 1:00 PM
Updated December 3, 2019 at 2:20 PM
Resolved September 17, 2019 at 11:25 AM
TestRail: Cases
TestRail: Runs