Temporarily disabling iOS DateFormatter as it conflicts with nativeMain's DateFormatter. TODO: Fix this

This commit is contained in:
dankito 2024-08-23 12:47:14 +02:00
parent 850beb8421
commit 88f6d53ccb
1 changed files with 17 additions and 17 deletions

View File

@ -1,17 +1,17 @@
package net.dankito.banking.fints.mapper //package net.dankito.banking.fints.mapper
//
import kotlinx.datetime.LocalDate //import kotlinx.datetime.LocalDate
import kotlinx.datetime.TimeZone //import kotlinx.datetime.TimeZone
//
actual class DateFormatter actual constructor(val pattern: String): NSDateFormatter() { //actual class DateFormatter actual constructor(val pattern: String): NSDateFormatter() {
//
//
actual fun parseDate(dateString: String): LocalDate? { // actual fun parseDate(dateString: String): LocalDate? {
this.dateFromString(dateString)?.let { nsDate -> // this.dateFromString(dateString)?.let { nsDate ->
return nsDate.toKotlinInstant().toLocalDateTime(TimeZone.Companion.currentSystemDefault())?.date // return nsDate.toKotlinInstant().toLocalDateTime(TimeZone.Companion.currentSystemDefault())?.date
} // }
//
return null // return null
} // }
//
} //}