Closed vinaykulk621 closed 7 months ago
@vinaykulk621 is attempting to deploy a commit to the leerob-site Team on Vercel.
A member of the Team first needs to authorize it.
This blog post was published in december, with the old logic it would show it as 1y ago
. With the new logic it would show it as 1mo ago
.
This PR will make the dates look like this.
Except for the font and styling of the Date, Just look at the formatting.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
site | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 9, 2024 1:27pm |
@leerob Fixed it.
There was a mistake in converting it into locale string. Verified it on local machine 👍🏻.
Hey @leerob, any plan on merging this>?
Here in this blog post it is being showed that it was published last year, But it was just 2 months ago.
This PR introduces the new logic where it accurately shows the duration like how many days, weeks, months or years.