BangleApps_old/apps/calendar
Randy Heydon 2ae961ee56 calendar: properly display synced all-day events.
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.
2025-02-06 20:58:48 -05:00
..
ChangeLog calendar: properly display synced all-day events. 2025-02-06 20:58:48 -05:00
README.md calendar: re-add ndColors setting 2023-10-19 20:00:54 +02:00
calendar-icon.js calendar: compress app icon 2021-12-17 14:51:12 +01:00
calendar.js calendar: properly display synced all-day events. 2025-02-06 20:58:48 -05:00
calendar.png calendar: use non-dithering colors by default; 2021-12-17 14:05:52 +01:00
interface.html sched/calendar interface: fix null timezone 2023-12-10 19:49:37 +01:00
metadata.json calendar: properly display synced all-day events. 2025-02-06 20:58:48 -05:00
screenshot_calendar.png calendar: Update screenshot 2022-01-05 17:26:32 +01:00
settings.js Fix no-unused-vars in existing apps 2024-03-04 21:34:50 +01:00

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.