Skip to content

Commit d526b92

Browse files
committed
use System.currentTimeMillis for jvm/android builds
Signed-off-by: Adam Ratzman <[email protected]>
1 parent 731aa98 commit d526b92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/commonJvmLikeMain/kotlin/com/adamratzman/spotify/utils/DateTimeUtils.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package com.adamratzman.spotify.utils
22

3-
import kotlinx.datetime.Clock
43
import kotlinx.datetime.Instant
54

65
/**
76
* The current time in milliseconds since UNIX epoch.
87
*/
9-
actual fun getCurrentTimeMs(): Long = Clock.System.now().toEpochMilliseconds()
8+
actual fun getCurrentTimeMs(): Long = System.currentTimeMillis()
109

1110
/**
1211
* Format date to ISO 8601 format

0 commit comments

Comments
 (0)