mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-19 02:25:42 +00:00
update
This commit is contained in:
15
OnlineChatSdk/Classes/ChatDateFormatter.swift
Normal file
15
OnlineChatSdk/Classes/ChatDateFormatter.swift
Normal 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user