SwiftDocOrg / swift-doc

A documentation generator for Swift projects
https://swiftdoc.org
MIT License
1.68k stars 100 forks source link

Set `en_US_POSIX` locale for date formatters #289

Closed mattt closed 3 years ago

mattt commented 3 years ago

Related to #287

The issue described in the linked PR is that, when running swift-doc from a non-English locale, there's a mismatch in the English text in the footer and the formatted date string. Rather than making this configurable, this PR explicitly sets the locale for date formatter instances to en_US_POSIX.

We can explore a complete localization strategy in a separate issue.