Tóth István Zoltán
09/12/2023, 7:55 AMorg.w3c.files.File.lastModified it is declared as an Int in Kotlin? It returns the wrong value and I think it should be a Long. Also, if I use kotlinx.datetime.Instant.fromEpochMilliseconds(file.lastModified.toLong()) the web browser hangs.Tóth István Zoltán
09/12/2023, 8:10 AMval lastModified = (js("file.lastModified.toString()") as String).toLongOrNull()
if (lastModified != null) Instant.fromEpochMilliseconds(lastModified.toLong())Mike Dawson
09/12/2023, 8:15 AMMike Dawson
09/12/2023, 8:16 AMturansky
09/12/2023, 9:02 AMJsLong :)turansky
09/12/2023, 9:03 AMkotlin-browserturansky
09/12/2023, 9:07 AM