Temporarily disabling iOS DateFormatter as it conflicts with nativeMain's DateFormatter. TODO: Fix this
This commit is contained in:
parent
850beb8421
commit
88f6d53ccb
|
@ -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
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
//}
|
Loading…
Reference in New Issue