ui: fix weekday mapper for x axis on >7d range
This commit is contained in:
parent
6078872f0e
commit
1397cace53
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ export const getTimeString = (ts, period, density,) => {
|
|||
return weekdays[ date.getDay() ];
|
||||
} else {
|
||||
const isPM = date.getHours() >= 12;
|
||||
return `${ isPM ? date.getHours() - 12 : date.getHours() }:${ startWithZero(date.getMinutes()) } ${isPM? 'pm' : 'am'}`;
|
||||
return `${weekdays[ date.getDay() ]} ${ isPM ? date.getHours() - 12 : date.getHours() }:${ startWithZero(date.getMinutes()) } ${isPM? 'pm' : 'am'}`;
|
||||
}
|
||||
}
|
||||
return `${ date.getDate() }/${ startWithZero(date.getMonth() + 1) } `;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue