Browse Source
Fix time of message in ChatApp sample. Added library kotlinx-datetime. It resolves issue: - https://github.com/JetBrains/compose-multiplatform/issues/4378pull/4382/head^2
dima.avdeev
9 months ago
committed by
GitHub
11 changed files with 19 additions and 38 deletions
@ -1,3 +0,0 @@
|
||||
actual fun timestampMs(): Long { |
||||
return System.currentTimeMillis() |
||||
} |
@ -1,3 +0,0 @@
|
||||
actual fun timestampMs(): Long { |
||||
return System.currentTimeMillis() |
||||
} |
@ -1,6 +0,0 @@
|
||||
import platform.Foundation.NSDate |
||||
import platform.Foundation.timeIntervalSince1970 |
||||
|
||||
actual fun timestampMs(): Long { |
||||
return (NSDate().timeIntervalSince1970() * 1000).toLong() |
||||
} |
@ -1,5 +0,0 @@
|
||||
import kotlin.js.Date |
||||
|
||||
actual fun timestampMs(): Long { |
||||
return Date.now().toLong() |
||||
} |
Loading…
Reference in new issue