diff --git a/Sources/App/Controllers/StatsController.swift b/Sources/App/Controllers/StatsController.swift index 041615f..54a65e2 100644 --- a/Sources/App/Controllers/StatsController.swift +++ b/Sources/App/Controllers/StatsController.swift @@ -147,7 +147,7 @@ struct StatsController: RouteCollection { private func getStartOfDay(day:Int, month:Int, year:Int) -> Date { let calendar = Calendar.current var components = DateComponents() - components.day = day - 1 + components.day = day components.month = month components.year = year components.hour = 0 @@ -158,7 +158,7 @@ struct StatsController: RouteCollection { private func getEndOfDay(day:Int, month:Int, year:Int) -> Date { let calendar = Calendar.current var components = DateComponents() - components.day = day - 1 + components.day = day components.month = month components.year = year components.hour = 23