mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
1def80ba42
15 changed files with 43 additions and 52 deletions
|
|
@ -157,12 +157,7 @@ export function parseDateRange(value: string, locale = 'en-US'): DateRange {
|
|||
|
||||
const now = new Date();
|
||||
const dateLocale = getDateLocale(locale);
|
||||
const { unit } = parseDateValue(value);
|
||||
let { num = 1 } = parseDateValue(value);
|
||||
|
||||
if (value === '7day') {
|
||||
num--;
|
||||
}
|
||||
const { num = 1, unit } = parseDateValue(value);
|
||||
|
||||
switch (unit) {
|
||||
case 'hour':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue