Skip to content

Commit

Permalink
Create TIMESTAMP string with 'en_US_POSIX' locale
Browse files Browse the repository at this point in the history
  • Loading branch information
vparashchak committed Oct 20, 2023
1 parent db68973 commit c2d087c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public extension CognitoAuthenticatable {
dateFormatter.dateFormat = "EEE MMM d HH:mm:ss 'UTC' yyyy"
dateFormatter.timeZone = TimeZone(identifier: "UTC")
// cognito expects the dateformat to be in English
dateFormatter.locale = Locale(identifier: "en")
dateFormatter.locale = Locale(identifier: "en_US_POSIX")
let timestamp = dateFormatter.string(from: Date())

// construct claim
Expand Down

0 comments on commit c2d087c

Please sign in to comment.