mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 09:57:00 +01:00
Merge branch 'dev' of https://github.com/umami-software/umami into dev
This commit is contained in:
commit
e5c19482ab
@ -2,7 +2,7 @@
|
|||||||
"name": "umami",
|
"name": "umami",
|
||||||
"version": "2.11.0",
|
"version": "2.11.0",
|
||||||
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
|
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
|
||||||
"author": "Mike Cao <mike@mikecao.com>",
|
"author": "Umami Software, Inc. <hello@umami.is>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://umami.is",
|
"homepage": "https://umami.is",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -263,6 +263,13 @@ export function getOffsetDateRange(dateRange: DateRange, increment: number) {
|
|||||||
const { unit: originalUnit } = parseDateValue(value) || {};
|
const { unit: originalUnit } = parseDateValue(value) || {};
|
||||||
|
|
||||||
switch (originalUnit) {
|
switch (originalUnit) {
|
||||||
|
case 'day':
|
||||||
|
return {
|
||||||
|
...dateRange,
|
||||||
|
startDate: addDays(startDate, increment),
|
||||||
|
endDate: addDays(endDate, increment),
|
||||||
|
offset: offset + increment,
|
||||||
|
};
|
||||||
case 'week':
|
case 'week':
|
||||||
return {
|
return {
|
||||||
...dateRange,
|
...dateRange,
|
||||||
|
Loading…
Reference in New Issue
Block a user