Closed admkopec closed 4 years ago
Hey @admkopec thanks for this PR. vapor/http has been merged into Vapor itself now and the RFC1123 latest helper is here: https://github.com/vapor/vapor/blob/master/Sources/Vapor/Utilities/RFC1123.swift
Thanks for the info @tanner0101 I just haven't noticed that the file was merged into the main vapor repository. I opened the appropriate PR there. (PR #2127)
Added more locale specific settings to support wider ranges of locales. If the application containing the server would declare support for other locales, then the RFC1123 formatted string wouldn't be RFC compliant. This fix makes sure that the formatter always uses the enUS_POSIX locale and the Georgian calendar.