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

Unexpected behavior for some article dates #357

Open
MatthewTurk247 opened this issue Sep 5, 2022 · 4 comments
Open

Unexpected behavior for some article dates #357

MatthewTurk247 opened this issue Sep 5, 2022 · 4 comments

Comments

@MatthewTurk247
Copy link
Contributor

MatthewTurk247 commented Sep 5, 2022

For recent articles, sometimes the datetime appears to be several hours into the future. I recommend taking a look at the fromNow() method that is called in Carousel.js and Diptych.js.
IMG_0875

@Manishpandey11
Copy link

Hello All ,I would like to work on this issue

@MatthewTurk247
Copy link
Contributor Author

Sure! I have assigned you to the issue. Are you able to pull a local copy of the dev branch?

@Manishpandey11
Copy link

Hi @MatthewTurk247, I am not able to understand the exact issue. Can you help me explain the exact issue?

@MatthewTurk247
Copy link
Contributor Author

In helpers/format.js, there is a function that is returning the wrong value for the dates of articles. As you can see in the screenshot above, the featured article at the top says that it was published "in 6 hours," which does not make sense. Seems like the date/time is being slightly offset and needs some readjustment. I am not sure why the offset is there, but you could try rewriting the fromDate() function to see what works.

@Manishpandey11 Manishpandey11 removed their assignment May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants