Pull request 1990: 5793-fix-stats-date
Updates #5793. Squashed commit of the following: commit 6ad10c000a00c23574342bd01f2cfe91b8eeaac3 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Sep 4 13:08:22 2023 +0300 all: upd chlog commit ab579d9cdc1b9f24015c8abff618c9ffe4d4f602 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Sep 1 19:39:00 2023 +0300 client: fix stats date
This commit is contained in:
@@ -44,7 +44,7 @@ const Line = ({
|
||||
enableGridY={false}
|
||||
enablePoints={false}
|
||||
xFormat={(x) => {
|
||||
if (interval === 1 || interval === 7) {
|
||||
if (interval >= 0 && interval <= 7) {
|
||||
const hoursAgo = subHours(Date.now(), 24 * interval);
|
||||
return dateFormat(addHours(hoursAgo, x), 'D MMM HH:00');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user