mobile: picker follow time format set in settings

This commit is contained in:
ammarahm-ed
2023-06-16 15:37:53 +05:00
committed by Ammar Ahmed
parent 8f4bd20253
commit a6d5a618b0

View File

@@ -455,6 +455,7 @@ export default function ReminderSheet({
mode="date"
onConfirm={handleConfirm}
onCancel={hideDatePicker}
is24Hour={db.settings?.getTimeFormat() === "24-hour"}
date={date || new Date(Date.now())}
/>
@@ -465,8 +466,13 @@ export default function ReminderSheet({
textColor={colors.night ? "#ffffff" : "#000000"}
fadeToColor={colors.bg}
theme={colors.night ? "dark" : "light"}
is24hourSource="locale"
androidVariant="nativeAndroid"
is24hourSource="locale"
locale={
db.settings?.getTimeFormat() === "24-hour"
? "en_GB.UTF8"
: "en_US.UTF8"
}
mode={reminderMode === ReminderModes.Repeat ? "time" : "datetime"}
/>