timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.64k stars 2.01k forks source link

Date Mismatch from Tags Pages to Article itself and Main Page #864

Open EpistemicPolymath opened 7 months ago

EpistemicPolymath commented 7 months ago

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):

Browser Info (if display / formatting issue):

timlrx commented 5 months ago

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 commented 5 months ago

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

EpistemicPolymath commented 4 months ago

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