Cookie expiration date weekdays are off by one
juhana opened this issue · comments
The stringifyDate()
method of Cookie (https://github.com/lvivski/start/blob/master/lib/src/cookie.dart#L48) gets the weekday wrong by one, and throws an error if it's Sunday. DateTime.weekday
returns a value between 1 and 7, but the method assumes it's between 0 and 6.