mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* [page_objects/time_picker] fix getTimeDurationInHours returning NaN * use correct format instead of Date.parse
This commit is contained in:
parent
6e7877915c
commit
4c543cbffe
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ export function TimePickerPageProvider({ getService, getPageObjects }) {
|
|||
}
|
||||
|
||||
async getTimeDurationInHours() {
|
||||
const DEFAULT_DATE_FORMAT = 'MMM D, YYYY @ HH:mm:ss.SSS';
|
||||
const DEFAULT_DATE_FORMAT = 'YYYY-MM-DD HH:mm:ss.SSS';
|
||||
const { start, end } = await this.getTimeConfigAsAbsoluteTimes();
|
||||
|
||||
const startMoment = moment(start, DEFAULT_DATE_FORMAT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue