memfreeme / memfree

MemFree - Hybrid AI Search Engine & AI UI Generator
https://www.memfree.me
MIT License
885 stars 133 forks source link

Optimize the time display format of historical messages #89

Open ahaapple opened 2 hours ago

ahaapple commented 2 hours ago
Screenshot 2024-10-24 at 4 59 25 PM
github-actions[bot] commented 2 hours ago

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.

TilteD24 commented 2 hours ago

I would like to work on it. Can you mention the related file to this issue ?

ahaapple commented 2 hours ago

@TilteD24 This file: frontend/components/sidebar/sidebar-item.tsx

You could add a util function in frontend/lib/utils.ts, then replace the following code:

                    {!isActive && <span>{format(new Date(search.createdAt), 'MMM d, yyyy h:mm a')}</span>}
ahaapple commented 2 hours ago

Thank you for your contribution.