I have in my main web messages.properties the following formats:
dateTimeFormat=MM/dd/yyyy HH:mm
dateFormat=MM/dd/yyyy
Which gives me dates in our backwards US format.
However, the entity log shows in the default European format; where do I change that?
gorelov
(Gleb Gorelov)
March 6, 2020, 2:20pm
#2
Hi,
entity-log-browse.xml
uses a custom formatter for the eventTs
column with the format obtained from the dateTimeWithSeconds
message located in the main message pack of the gui module:
<column id="eventTs" caption="msg://when">
<formatter class="com.haulmont.cuba.gui.components.formatters.DateFormatter"
format="msg://dateTimeWithSeconds"/>
</column>
In order to alter its value, you can define a message with the same key in the main message pack of your app (in the web module)
Regards,
Gleb
Thank you as always, @gorelov
1 Like