fix: prevent today's notes from showing as yesterday#65
fix: prevent today's notes from showing as yesterday#65VinayKumar42 merged 2 commits intoHarshYadav152:mainfrom
Conversation
|
@KARTIK001-CODER is attempting to deploy a commit to the Harsh Yadav's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
🎉 Thank you @KARTIK001-CODER for your first PR to SaveBook!
We really appreciate your contribution 🙌
What happens next:
- 🔍 Maintainers will review your PR
- 🧪 Automated checks will run
- ✨ Feedback may be shared if needed
Please confirm your PR includes:
- ✔️ Clear summary of changes
- ✔️ Linked issue (e.g., Fixes #123)
- ✔️ Steps to test
- ✔️ Screenshots (for UI changes)
📘 Contribution Standards:
👉 https://github.com/HarshYadav152/SaveBook/blob/main/CONTRIBUTING.md
💬 Stay Connected with Our Community
🎯 Discord (Official Communication)
For formal discussions, code reviews, and project updates:
👉 https://discord.gg/eMTePUK3gJ
💚 WhatsApp (Friendly Community)
For informal chats, quick help, and building friendships with contributors:
👉 https://chat.whatsapp.com/I8GYXd3mHlDCC2iXhNGeqV
🌟 Our Philosophy: We value both professional collaboration (Discord) and personal connections (WhatsApp). Join both to get the complete SS-Capture community experience!
Thanks for helping improve SaveBook 🚀
Let's build something amazing together! 💪
fix: prevent today's notes from showing as yesterday
Here’s your PR content filled in and ready to paste.
Description
Fixes incorrect relative date calculation where notes created today were displayed as “Yesterday” due to timezone shifts and use of
Math.ceil().The logic now compares local calendar days instead of raw millisecond differences.
Fixes #61
Type of change
How Has This Been Tested?
new Date().toISOString()at different times of day.Checklist: