1
0
Fork 0
Commit Graph

28 Commits (9ab4ed8a129686becbef21ba4bf4e9ffefeb196f)

Author SHA1 Message Date
thomas bcf88c31f1 fix(agenda): all day event offsets, locale display
Currently, allDay events are off by one day for negative timezones. Per
the CalendarContract:

    If allDay is set to 1 eventTimezone must be "UTC" and the time must
    correspond to a midnight boundary.

For example, in GMT-2:00, an all day event on December 2nd (beginning at
00:00:00) will be wrongly displayed as starting on December 1st, since
the locale will determine that the event's start time is actually
22:00:00 on Dec 1.

Source:

https://developer.android.com/reference/android/provider/CalendarContract.Events.html

This commit:

* Corrects the offset back to UTC 00:00:00 for allDay events

* Fixes the conditional for single-day all day events in showEvent()

* Fixes the display of formatDateShort() for some English locales by
  also removing any trailing commas or whitespace when the year is
  removed
2024-12-16 17:30:34 -05:00
Anton 2a10df7f45 Bump app versions 2024-03-04 22:32:06 +01:00
Anton 2e4cb8eb11 Fix no-unused-vars in existing apps 2024-03-04 21:34:50 +01:00
Gabriele Monaco 4287f3a921 agenda: Fixed "Today" and "Yesterday" wrongly displayed for allDay events on some time zones 2023-07-02 20:05:08 +02:00
Gabriele Monaco ecf029deff agenda: show day of the week in date 2023-02-07 14:01:51 +01:00
Gabriele Monaco f0a66dc177 agenda: added color field and updating clkinfo periodically (running events) 2023-01-20 15:00:45 +01:00
Gordon Williams c8a45e3a04
Merge branch 'master' into agenda_today 2023-01-05 10:25:45 +00:00
Marco H 6ab32959d5 Setting to use "Today" and "Yesterday" instead of dates 2023-01-04 14:41:32 +01:00
Gabriele Monaco 4a47b49c1c agenda: added dynamic, short and range fields to clkinfo 2022-12-19 23:03:10 +03:00
Gordon Williams 8425f0b50a Update clock_info to avoid a redraw/general tidyups 2022-12-16 15:40:58 +00:00
Gordon Williams 99065debc7 Ensure Agenda supplies an image for clkinfo items (fix #2397) 2022-12-14 14:52:04 +00:00
Gordon Williams 602689ed28 Fix clkinfo icon 2022-11-25 16:26:38 +00:00
Gordon Williams 639d9b7dc5 agenda 0.08: Fix error in clkinfo (didn't require Storage & locale) 2022-11-25 16:08:26 +00:00
Gordon Williams c4e1fd01be Added clkinfosunrise to allow clocks to display sunrise and sunset if they use clock_info 2022-11-21 16:37:04 +00:00
Gabriele Monaco da9c6a1d96 agenda: added troubleshooting guidelines to the README 2022-10-14 09:41:27 +02:00
David Peer f54cdd2025 Almost finished a first version 2022-09-29 21:05:19 +02:00
David Peer ceaae5614d Minor changes 2022-09-20 18:53:46 +02:00
David Peer 24972e3128 Refactored into clkinfo.js files 2022-09-19 17:23:37 +02:00
Gabriele Monaco 311d619e57 agenda: displaying calendar colour and name 2022-09-08 09:10:13 +00:00
Gabriele Monaco 89a4cf1bbf agenda: added awareness of allDay field 2022-08-23 11:52:31 +02:00
Gabriele Monaco a25ec8b133 agenda: disable past events display from settings 2022-07-31 16:09:25 +02:00
Gordon Williams 596a8183c0 fixing versions/etc o remove lint warnings 2022-06-28 10:19:29 +01:00
Gabriele Monaco 064b9996e7 Added periodic call to forceCalendarSync 2022-06-05 19:06:18 +02:00
Gabriele Monaco e057270d01 Added settings page to force calendar sync 2022-06-05 18:56:20 +02:00
Gabriele Monaco a50f53b15a Added screenshots and correct version number 2022-06-05 18:55:55 +02:00
Gabriele Monaco 5fee259dd0 Changed calendar format to array and graying out old events 2022-06-05 18:55:55 +02:00
Gabriele Monaco 0f079a2752 Fixed layout in agenda 2022-06-05 18:55:55 +02:00
Gabriele Monaco 8c42e81aea Added basic agenda 2022-06-05 18:55:55 +02:00