Fixed month calculation
This commit is contained in:
@@ -136,7 +136,7 @@ struct StatsController: RouteCollection {
|
||||
private func getEndOfMonth(month:Int, year:Int) -> Date {
|
||||
let calendar = Calendar.current
|
||||
var components = DateComponents()
|
||||
components.day = -1
|
||||
components.day = -0
|
||||
components.timeZone = TimeZone(identifier: "GMT")
|
||||
components.month = month + 1
|
||||
components.year = year
|
||||
|
||||
Reference in New Issue
Block a user