Commit Graph

13 Commits (1e78c6a339f6cdee132ab1d57f55429e2861acf9)

Author SHA1 Message Date
James Clarke 04881a1bd6 Tomorrow Showing Correctly 2025-03-06 19:11:38 +00:00
James Clarke df3777bf92 Fix 2025-03-06 11:30:17 +00:00
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 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
Marco H 6ab32959d5 Setting to use "Today" and "Yesterday" instead of dates 2023-01-04 14:41:32 +01: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
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