Repository navigation
v2.2.1 - Bug fixes
Bug Fixes
Calendar today indicator stuck on previous date past midnight
The today highlight (the blob/pointer on the mini calendar widget and the main calendar grid) was frozen on the wrong date for the first ~5.5 hours after midnight on devices in timezones ahead of UTC (e.g. IST UTC+5:30).
Root cause: All date string calculations used new Date().toISOString().split('T')[0]. toISOString() always returns UTC time. At 00:33 AM IST the UTC time is still 19:03 PM of the previous day, so the string returned the previous date.
Fix: Replaced all toISOString()-based local date strings with getFullYear() / getMonth() / getDate() which always reflect the device local timezone.
Files fixed: CalendarMiniWidget, Calendar page, calendar.store, ActivityHeatmap, Dashboard.
Update checker rejected valid GitHub download URLs
The updater backend was rejecting all update downloads with the error "Download URL host 'github.com' is not the expected GitHub asset host".
Root cause: The URL allowlist was hardcoded to objects.githubusercontent.com (the CDN), but GitHub's browser_download_url field in the API response always returns github.com as the host. The CDN redirect happens transparently at the HTTP level.
Fix: Updated the allowed host to github.com and added a path prefix check (/SamarthBhogre/ChroniNotes/releases/download/) to ensure the URL belongs specifically to this repo's releases.
Full Changelog: v2.2.0...v2.2.1