-
Notifications
You must be signed in to change notification settings - Fork 90
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
Dates are off by one on the timeline #73
Comments
@Cody-Chinn Aren't you facing issue while rendering timeline? |
Yes I am, it looks different than your issue though. I would like to see your the values you're passing into the timeline. That would help explain you issue |
@Cody-Chinn These are the VALUES that I'm passing |
@Cody-Chinn Below function is used to get date label. const defaultGetLabel = (date, index) => (new Date(date)).toDateString().substring(4); Can you also check what is id attr on li which is showing you date value in string format as label? |
When passing in an array from a redux state, the dates that are displayed in the timeline appear to be off by one.
On the right you can see that I've logged the dates we're passing in, and on the left you can see the timeline is displaying dates that are behind by one day.
The text was updated successfully, but these errors were encountered: