From 0365fd3ab51de90cf0c7728876b5af6218303da4 Mon Sep 17 00:00:00 2001 From: Niko Date: Fri, 26 Jul 2024 10:57:12 +0200 Subject: [PATCH] feat(bank-sdk): Skonto feature. Fix issue of selecting date PP-377 --- .../ui/components/picker/date/GiniDatePickerDialog.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/capture-sdk/sdk/src/main/java/net/gini/android/capture/ui/components/picker/date/GiniDatePickerDialog.kt b/capture-sdk/sdk/src/main/java/net/gini/android/capture/ui/components/picker/date/GiniDatePickerDialog.kt index 308e7506d..b64296181 100644 --- a/capture-sdk/sdk/src/main/java/net/gini/android/capture/ui/components/picker/date/GiniDatePickerDialog.kt +++ b/capture-sdk/sdk/src/main/java/net/gini/android/capture/ui/components/picker/date/GiniDatePickerDialog.kt @@ -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( @@ -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(), )