How to change the date/time format in the admin screens (entity log, etc)

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. :wink:

However, the entity log shows in the default European format; where do I change that?

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 :smiley:

1 Like