Mercurial > gemma
diff client/src/components/importoverview/ImportOverview.vue @ 2847:4da07a11e6e1
import_overview: fix date calculation
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 28 Mar 2019 15:43:32 +0100 |
parents | 503a73e9a755 |
children | b9a6abef9f1c |
line wrap: on
line diff
--- a/client/src/components/importoverview/ImportOverview.vue Thu Mar 28 14:07:20 2019 +0100 +++ b/client/src/components/importoverview/ImportOverview.vue Thu Mar 28 15:43:32 2019 +0100 @@ -238,11 +238,11 @@ break; case this.$options.LAST_7_DAYS: start = startOfDay(pointInTime); - end = endOfDay(addDays(7, start)); + end = endOfDay(addDays(start, 7)); break; case this.$options.LAST_30_DAYS: start = startOfDay(pointInTime); - end = endOfDay(addDays(30, start)); + end = endOfDay(addDays(start, 30)); break; } return [start, end];