diff --git a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/Date.kt b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/Date.kt index e74201a3..dfb6ffea 100644 --- a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/Date.kt +++ b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/Date.kt @@ -17,7 +17,7 @@ actual class Date(val date: NSDate) { // cannot subclass NSDate as it's a class actual constructor(millisSinceEpoch: Long) : this(NSDate(timeIntervalSinceReferenceDate = ((millisSinceEpoch - DiffBetweenEpochTimeAndReferenceDate) / 1000).toDouble())) - actual constructor() : this(NSDate().timeIntervalSince1970.toMillis()) + actual constructor() : this(NSDate()) actual val millisSinceEpoch: Long