diff --git a/kodein-log/src/embeddedNativeMain/kotlin/org/kodein/log/instantEmbedded.kt b/kodein-log/src/embeddedNativeMain/kotlin/org/kodein/log/instantEmbedded.kt index 1bb3956..5a8e28d 100644 --- a/kodein-log/src/embeddedNativeMain/kotlin/org/kodein/log/instantEmbedded.kt +++ b/kodein-log/src/embeddedNativeMain/kotlin/org/kodein/log/instantEmbedded.kt @@ -10,7 +10,7 @@ public actual fun now(): Instant { memScoped { val spec = alloc() clock_gettime(CLOCK_REALTIME, spec.ptr) - return Instant(spec.tv_sec, spec.tv_nsec) + return Instant(spec.tv_sec, spec.tv_nsec.convert()) } }