mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Fix formatDateTime
This commit is contained in:
parent
a5f674942a
commit
eb41a85d2b
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ function formatDateTime(date, type = 'datetime') {
|
|||
} else if (delta_days === 1) {
|
||||
// yesterday
|
||||
formatted_date = 'Yesterday';
|
||||
} else if (delta_days > 2 && delta_days <= 6) {
|
||||
} else if (delta_days >= 2 && delta_days <= 6) {
|
||||
// if in current last week show weekday
|
||||
formatted_date = date.toLocaleDateString('en-GB', { weekday: 'short' });
|
||||
formatted_date = date.toLocaleDateString('en-GB', { weekday: 'short' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue