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 Mismatch from Tags Pages to Article itself and Main Page #864

Open
EpistemicPolymath opened this issue Mar 1, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@EpistemicPolymath
Copy link

Describe the bug
The dates are not matching up on certain pages with the date set in the articles themselves in .mdx.

To Reproduce
Steps to reproduce the behavior:

  1. On the Main.tsx homepage the dates are correct:
    chrome_nZsS4hZK5s
  2. For the individual writings the date is correct:
    chrome_h1IsSzaZdg
  3. For the Tags pages the dates are -1:
    chrome_8EKzRRkMje

Expected behavior
The dates are consistent and match the .mdx set dates across all pages.

System Info (if dev / build issue):

  • OS: Windows 11/Chrome Browser
  • Node version (please ensure you are using 18+): v20.11.0
  • Npm version: 10.4.0

Browser Info (if display / formatting issue):

  • Device: Desktop
  • Browser: Chrome Browser
  • Version: 122.0.6261.95 (Official Build) (64-bit)
@EpistemicPolymath EpistemicPolymath added the bug Something isn't working label Mar 1, 2024
@timlrx
Copy link
Owner

timlrx commented Apr 17, 2024

Hmm, not sure why are you getting different dates. I checked and verified that they all use the the same formatDate function. Did you try deleting .next and rebuilding again?

@EpistemicPolymath
Copy link
Author

I am going to give this a try and report back on my findings! Thank you for getting back to me!!

@EpistemicPolymath
Copy link
Author

I tried this and it still has the wrong dates is there any particular manner in which I should try this? I have it uploaded via Vercel and tried to delete .next locally and repush it after rebuilding it. In the dev server the dates were all wrong by -1, but when I reuploaded to Vercel it was the same. Do I need to do this differently? I have a knowledge disconnect between how the data is stored locally versus on Vercel upon uploads. @timlrx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants