mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-14 16:53:52 +00:00
update
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import Foundation
|
||||
|
||||
class ChatDateFormatter : DateFormatter {
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
self.calendar = Calendar(identifier: Calendar.Identifier.iso8601)
|
||||
@@ -12,4 +13,8 @@ class ChatDateFormatter : DateFormatter {
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
public func getCurrent() -> String {
|
||||
self.string(from: NSDate() as Date)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user