temporal potentially working variant (bot not building
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package dev.inmo.postssystem.features.common.common.ui
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import com.soywiz.klock.DateTime
|
||||
import com.soywiz.klock.ISO8601
|
||||
import org.jetbrains.compose.web.dom.Text
|
||||
|
||||
object DateTimeView {
|
||||
val simpleFormat = ISO8601.BaseIsoDateTimeFormat(
|
||||
"DD.MM.YYYY, hh:mm"
|
||||
)
|
||||
@Composable
|
||||
fun Simple(
|
||||
dateTime: DateTime
|
||||
) {
|
||||
Text(dateTime.local.format(simpleFormat))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user