Discovered that, in the events synchronized from Gadgetbridge, all-day events have timestamps that disregard local timezones. Specifically, all-day events always start at midnight UTC, which caused calendar to display them starting at a different time depending on time zone offset (e.g. for my offset of -5, I see all-day events start at 19:00 the day before). Borrowed logic from the agenda app to correct this. This logic shifts an all-day event's start time to start at midnight in the current time zone. Also specify all-day events as type "o" (other) so the full day is highlighted and the start time is not displayed. Note that this does nothing to handle all-day events that span more than one day (only the first day is highlighted in the calendar). Also note that I'm not sure how this will handle time zone changes, like shifting to/from daylight savings time. |
||
|---|---|---|
| .. | ||
| ChangeLog | ||
| README.md | ||
| calendar-icon.js | ||
| calendar.js | ||
| calendar.png | ||
| interface.html | ||
| metadata.json | ||
| screenshot_calendar.png | ||
| settings.js | ||
README.md
Calendar
Monthly calendar, displays holidays uploaded from the web interface and scheduled events.
Usage
- Swipe left to go to the previous month
- Swipe right to go to the next month
- Swipe up (Bangle.js 2 only) to go to the previous year
- Swipe down (Bangle.js 2 only) to go to the next year
- Touch to display events for current month
- Press the button (button 3 on Bangle.js 1) to exit
- Holidays have same color as weekends and can be edited with the 'Download'-interface, e.g. by uploading an iCalendar file.
Settings
B2 Colors: use non-dithering colors (default, recommended for Bangle 2) or the original color scheme.