mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-15 00:54:05 +00:00
16 lines
452 B
Swift
16 lines
452 B
Swift
|
|
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")
|
||
|
|
}
|
||
|
|
}
|