temporal potentially working variant (bot not building

This commit is contained in:
2022-03-26 14:19:20 +06:00
parent 51cdfb320b
commit 37114f0ddb
17 changed files with 216 additions and 31 deletions
features
auth
client
build.gradle
src
commonMain
kotlin
dev
inmo
postssystem
features
common
client
src
jsMain
kotlin
dev
inmo
postssystem
features
common
content
binary
client
src
jsMain
kotlin
dev
inmo
postssystem
features
client
src
jsMain
kotlin
dev
inmo
postssystem
features
text
client
src
jsMain
kotlin
dev
inmo
postssystem
features
posts
common
src
commonMain
kotlin
dev
inmo
postssystem
features
posts
common
roles
client
src
commonMain
kotlin
dev
services/posts/client/src
commonMain
jsMain
kotlin
dev
inmo
postssystem
services
posts

@ -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))
}
}