Skip to content

Commit 79bb0d5

Browse files
authored
Merge pull request #1 from alx-jones/main
Set locale for DateFormatter
2 parents 5f93deb + d4c8702 commit 79bb0d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

S3Middleware/S3Middleware.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class S3RequestHeadersBuilder {
5757
let now = Date()
5858
let dateFormatter = DateFormatter()
5959
dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
60+
dateFormatter.locale = Locale(identifier: "en_US_POSIX")
6061
dateFormatter.dateFormat = "yyyMMdd'T'HHmmss'Z'"
6162
amzDate = dateFormatter.string(from: now)
6263
dateFormatter.dateFormat = "yyyMMdd"

0 commit comments

Comments
 (0)