react-native-persian-calendar-picker icon indicating copy to clipboard operation
react-native-persian-calendar-picker copied to clipboard

date today does not change after 00:00

Open mskarimi opened this issue 6 years ago • 4 comments

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

mskarimi avatar Jul 19 '19 07:07 mskarimi

Yes, I have this problem too.

Hamidrezana avatar Jul 19 '19 13:07 Hamidrezana

yes i have same problem and i dont know how resolve this issue.

Ehsan-Vaziri avatar Sep 10 '19 19:09 Ehsan-Vaziri

@mskarimi Can you provide more details? A snippet of your code and Environment details

rghorbani avatar Oct 26 '19 08:10 rghorbani

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  }]}
                        />

soheils2 avatar Apr 14 '20 20:04 soheils2