Skip to content

Commit

Permalink
fix: timestamp conversion issue (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed Nov 17, 2021
1 parent 24c6f7b commit d986f54
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -4,5 +4,5 @@ import java.util.*
import java.util.concurrent.TimeUnit

fun Date.getUnixTimestamp(): Long {
return TimeUnit.MILLISECONDS.toSeconds(this.time / 100)
return TimeUnit.MILLISECONDS.toSeconds(this.time)
}

0 comments on commit d986f54

Please sign in to comment.