Is it possible to change the date format in Allure Reports?

Viewed 371

My Allure reports display the date in a MM/dd/yyyy format. I would like to change the format to be dd/MM/yyyy. Is it possible to set a different date format in allure reports?

1 Answers

Yep, you can do this in the settingsFactory.js, which can be found at:

allure-generator\src\main\javascript\utils\settingsFactory.js

Here is an example of setting this to the en (English) and au (Australia) locale.

import LocalStorageModel from '../data/localstorage/LocalStorageModel';

const globalSettingsDefaults = {
    language: 'en-AU',
    sidebarCollapsed: false,
    sideBySidePosition: [50, 50]
}
Related