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

Dates are off by one on the timeline #73

Open
Cody-Chinn opened this issue Jul 29, 2020 · 4 comments
Open

Dates are off by one on the timeline #73

Cody-Chinn opened this issue Jul 29, 2020 · 4 comments

Comments

@Cody-Chinn
Copy link

When passing in an array from a redux state, the dates that are displayed in the timeline appear to be off by one.

Screen Shot 2020-07-29 at 2 57 04 PM

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.

@prakharb147
Copy link

@Cody-Chinn Aren't you facing issue while rendering timeline?
I'm just getting "0" output #75 on the screen

@Cody-Chinn
Copy link
Author

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

@prakharb147
Copy link

image

@Cody-Chinn These are the VALUES that I'm passing

@MUMUKSHMEGHWAL
Copy link

MUMUKSHMEGHWAL commented Sep 23, 2020

@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?

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

3 participants