Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 97f8420

Browse files
須藤将史須藤将史
authored andcommitted
display date string with current local
1 parent 8296445 commit 97f8420

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

StudyplusSDK/StudyplusRecord.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ private extension Date {
4343
}
4444

4545
func string(format: String = "yyyy-MM-dd'T'HH:mm:ssZ") -> String {
46+
formatter.locale = Locale.current
4647
formatter.dateFormat = format
4748
return formatter.string(from: self)
4849
}

0 commit comments

Comments
 (0)