rjwignar / AIChefBot

Your AI-Powered Recipe Generator
https://ai-chef-bot.vercel.app
3 stars 0 forks source link

Give YYYY-MM-DD timestamp to saved recipes #182

Closed kpunno closed 6 months ago

kpunno commented 7 months ago

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:

Screen Shot 2024-04-09 at 9 26 48 PM

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

Screen Shot 2024-04-10 at 10 04 44 AM

vercel[bot] commented 7 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
kpunno commented 6 months ago

@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.

Screen Shot 2024-04-11 at 9 10 33 AM