Closed kpunno closed 6 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
ai-chef-bot | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 11, 2024 1:08pm |
@rjwignar
Thanks for this. I recently made changes to reflect using the user's locale before the timestamp is displayed. It turns out that the display format is a bit prettier too.
Resolves #178
Something to note is that this date does not match our timezone. We can make it an EST date, but then we should seriously consider localizing the date if we're concerned about that. If anyone has experience with how we can localize the date, then that's the best approach.
created
attribute is a string, we can parse it as such:All recipes have been updated in the database to contain timestamps after this date. I also took the liberty of adding timestamps, defined in
RecipeCard.js
to each recipe card. Design is up for debate.The object's timestamp
created
takes the form of ISO date time format:2024-04-10T14:07:18.112Z