DPA: Scheduled Reports Use US Date Format While Ad-hoc Reports Use Local Format
Сводка: Data Protection Advisor (DPA) scheduled reports are displayed in US date format (MM/DD/YY) even in non-US regions. Ad-hoc reports correctly use the local date format (DD/MM/YY). This issue occurs because the DPA application-service.conf file defaults to a wrapper.lang parameter of "en_US," overriding the OS locale settings. ...
Симптомы
A DPA server located in a non-US country or region (for example, AU) keeps sending scheduled reports in US date format (MM/DD/YY). Ad-hoc reports are sent in the local date format (DD/MM/YY).
In one instance, a DPA server was installed on Red Hat OS in AU. The scheduled report date format was constantly presented as MM/DD/YY.
When running the same report from the DPA UI -> Run Reports, the report is rendered in the date format DD/MM/YY.
Sending the report output by email from the DPA UI also results in DD/MM/YY.
However, once this report is configured as a scheduled report, the date format changes to the US format (MM/DD/YY). This occurs whether the report is published as a file or an email.
Changing the time zone settings from the DPA UI does not change the date format in scheduled reports.
Причина
After DPA installation, locale parameter "wrapper.lang parameter" in the configuration file "..\EMC\DPA\services\executive\application-service.conf" is defined as "en_US" by default.
The OS locale setting is overridden by the wrapper configuration. As a result, the date format changes to the US format in scheduled reports.
Разрешение
There are two workarounds available:
- To change the date format on a specific scheduled report:
Run the report. In Report Format > Table Styles > Date Fields, set the date format to "DD/MM/YY hh:mm:ss" and save the report.
This workaround must be done per report. - To change the date format on all scheduled reports (for example, to DD/MM/YY with locale AU):
- Stop the application service and agent
- Back up the application-service.config file to a location outside the DPA directory.
- Add the following lines to the application-service.config file:
wrapper.java.additional.40 = -Duser.language=en wrapper.java.additional.41 = -Duser.country=AU
- Start the Application service and agent.
Contact support for further details or information.