Skip to content

Commit

Permalink
feat(bank-sdk): Skonto feature. Fix issue of selecting date
Browse files Browse the repository at this point in the history
PP-377
  • Loading branch information
ndubkov-distcotech committed Jul 26, 2024
1 parent a0036e7 commit 0365fd3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import net.gini.android.capture.ui.theme.GiniTheme
import java.time.Instant
import java.time.LocalDate
import java.time.ZoneId
import java.time.ZoneOffset

@Composable
fun GiniDatePickerDialog(
Expand All @@ -41,7 +42,10 @@ fun GiniDatePickerDialog(

val dateState = rememberDatePickerState(
selectableDates = selectableDates,
initialSelectedDateMillis = date.atStartOfDay(ZoneId.systemDefault()).toInstant()
initialSelectedDateMillis =
date
.atTime(12, 0, 0)
.toInstant(ZoneOffset.UTC)
.toEpochMilli(),
)

Expand Down

0 comments on commit 0365fd3

Please sign in to comment.