This commit is contained in:
Andrey Blinov
2020-08-17 18:48:47 +07:00
parent a74b522e08
commit 29dbb3dea1
3 changed files with 127 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
import Foundation
class ChatDateFormatter : DateFormatter {
override init() {
super.init()
self.calendar = Calendar(identifier: Calendar.Identifier.iso8601)
self.dateFormat = "yyyy'-'MM'-'dd' 'HH':'mm':'ss'"
self.locale = Locale(identifier: "en")
self.timeZone = TimeZone(secondsFromGMT: 10800)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}