diff options
author | Eric Bailey <git@esb.lol> | 2023-12-28 16:13:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 14:13:51 -0800 |
commit | 705f9b61efebe8ca0d044f1a53586b6fe4614195 (patch) | |
tree | a1ed4e9d483377a01c4cbefa5b6e1c8f657e03cc /src/view/com/modals/BirthDateSettings.tsx | |
parent | 23c9c8977b73ae86f0099012ec372a4bccc9741f (diff) | |
download | voidsky-705f9b61efebe8ca0d044f1a53586b6fe4614195.tar.zst |
Handle birth dates as UTC, handle locale formatting (#2363)
* Enforce UTC for birthdate picker * Handle locales * Remove log * Add a second snap point to the date input in case text is zoomed * Guard against bad dates * Log message --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/com/modals/BirthDateSettings.tsx')
-rw-r--r-- | src/view/com/modals/BirthDateSettings.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/com/modals/BirthDateSettings.tsx b/src/view/com/modals/BirthDateSettings.tsx index c78f06ed4..1505d224f 100644 --- a/src/view/com/modals/BirthDateSettings.tsx +++ b/src/view/com/modals/BirthDateSettings.tsx @@ -23,7 +23,7 @@ import { } from '#/state/queries/preferences' import {logger} from '#/logger' -export const snapPoints = ['50%'] +export const snapPoints = ['50%', '90%'] function Inner({preferences}: {preferences: UsePreferencesQueryResponse}) { const pal = usePalette('default') @@ -63,6 +63,7 @@ function Inner({preferences}: {preferences: UsePreferencesQueryResponse}) { <View> <DateInput + handleAsUTC testID="birthdayInput" value={date} onChange={setDate} |