Selected Day presents 1 days before selected
Osher671279 opened this issue · 4 comments
When im selecting a date, for example(24/09/2020), the log presenting (23/09/2020) aka the day before the on i selected
The Expected behaviour is that the day i selected will be presented
Code sample
Took the code from your Docs
Screenshots (if applicable)
https://imgur.com/a/fZD0Vl7
https://imgur.com/Nky6vFY
What have you tried
tried to search on google how to convert to local time in React native, couldn't find anything useful.
Your Environment
Visual studio code - React native Expo
react-native info
output:
OUTPUT GOES HERE
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.
same issue with me
i was also having this issue. but when i passed the incooming date in moment funtion. it showed just fine
onChange={(range)=>{
setStartDate(moment(range.startDate).format("YYYY-MM-DD"))
}
}