about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-03-20 17:44:31 -0500
committerEric Bailey <git@esb.lol>2024-03-20 17:44:31 -0500
commit6bf97d4fd538a028a34e0cb46f02d0d887fe2435 (patch)
treeb5b945a1b9e8a8d985c475922031469585f23c74 /src
parent0dbc796ff6742f17a7bc5a6790c006088d9fe295 (diff)
downloadvoidsky-6bf97d4fd538a028a34e0cb46f02d0d887fe2435.tar.zst
Adjust DateField timezone offset
Diffstat (limited to 'src')
-rw-r--r--src/components/forms/DateField/index.android.tsx6
-rw-r--r--src/components/forms/DateField/index.tsx1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/components/forms/DateField/index.android.tsx b/src/components/forms/DateField/index.android.tsx
index 4a1d0d6d1..700d15e6d 100644
--- a/src/components/forms/DateField/index.android.tsx
+++ b/src/components/forms/DateField/index.android.tsx
@@ -1,7 +1,6 @@
 import React from 'react'
 import DatePicker from 'react-native-date-picker'
 
-import {isAndroid} from 'platform/detection'
 import {useTheme} from '#/alf'
 import {DateFieldProps} from '#/components/forms/DateField/types'
 import {toSimpleDateString} from '#/components/forms/DateField/utils'
@@ -52,8 +51,9 @@ export function DateField({
 
       {open && (
         <DatePicker
-          modal={isAndroid}
-          open={isAndroid}
+          modal
+          open
+          timeZoneOffsetInMinutes={0}
           theme={t.name === 'light' ? 'light' : 'dark'}
           date={new Date(value)}
           onConfirm={onChangeInternal}
diff --git a/src/components/forms/DateField/index.tsx b/src/components/forms/DateField/index.tsx
index d5a4beda0..5662bb594 100644
--- a/src/components/forms/DateField/index.tsx
+++ b/src/components/forms/DateField/index.tsx
@@ -59,6 +59,7 @@ export function DateField({
           <View style={a.gap_lg}>
             <View style={[a.relative, a.w_full, a.align_center]}>
               <DatePicker
+                timeZoneOffsetInMinutes={0}
                 theme={t.name === 'light' ? 'light' : 'dark'}
                 date={new Date(value)}
                 onDateChange={onChangeInternal}