github vapor/vapor 4.0.0-beta.3.15
Make RFC1123 formatter use en_US_POSIX locale

latest releases: 4.102.0, 4.101.4, 4.101.3...
pre-release4 years ago

Adds more locale specific settings to the DateFormatter to support wider ranges of default system locales. If the application containing the server would declare support for other locales (such as deDE or plPL) or the default system locale wouldn't be compatible with enUS making the RFC1123 formatted string non RFC compliant. This fix makes sure that the formatter always uses the enUS_POSIX locale and the Georgian calendar.

Example

The returned string with default locale set as deDE is Don, 05 Dez 2019 19:27:05 GMT instead of Thu, 05 Dec 2019 19:27:05 GMT making the first string non RFC compliant.

Don't miss a new vapor release

NewReleases is sending notifications on new releases.