SwiftMoment
SwiftMoment copied to clipboard
EndOf Years bug
There's a bug when getting EndOf a year
Detailed Description
let now = moment()
let endYear = now.subtract(1, .Years).endOf(.Years) // 2016-12-30 23:59:59
expected result is 2016-12-31 23:59:59
What are your timeZone and locale ?
TimeZone: Asia/Jakarta Locale: en_US