update day
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user