react-native-persian-calendar-picker
react-native-persian-calendar-picker copied to clipboard
date today does not change after 00:00
persianCalender don't update today date when is mobile clock or simulator clock after 00:00. and when select date and check date with onDateChange date is one day ahead.
please check it. thank's
Yes, I have this problem too.
yes i have same problem and i dont know how resolve this issue.
@mskarimi Can you provide more details? A snippet of your code and Environment details
same !
update:
ok i figure that its not about 00:00
today is always one day before! i managed it by setting today selector transparent to 0 and init today + 1
like below:
<PersianCalendarPicker
scaleFactor={420}
dayShape="square"
isRTL
onDateChange={onDate}
selectedStartDate = {JNOW().add(1,"day")}
todayBackgroundColor= "rgba(255,0,0,0)"
// customDatesStyles={[{ style: styles.calndr }]}
/>