Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date today does not change after 00:00 #34

Open
mskarimi opened this issue Jul 19, 2019 · 4 comments
Open

date today does not change after 00:00 #34

mskarimi opened this issue Jul 19, 2019 · 4 comments

Comments

@mskarimi
Copy link

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

@Hamidrezana
Copy link

Yes, I have this problem too.

@Ehsan-Vaziri
Copy link

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

@rghorbani
Copy link
Owner

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

@soheils2
Copy link

soheils2 commented Apr 14, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants