diff options
Set time-of-day consistently to midnight for until day
A day begins on midnight (inclusive) and ends on midnight (exclusive). A
day as a whole is represented by the initial midnight, i.e. time-of-day
is 00:00.
On load of recurrent appointments (but not events) time-of-day for the
until day is set to 23:59. For a newly created recurrent appointment the
setting depends on the input method: time-of-day is set to 00:00 if
until day is given as a date (day, month and year), but to time-of-day
for the start day if given as an offset (+dd).
The resulting behaviour is only visible in interactive use of calcurse
as proved by the following scenario.
1) Create an appointment with start time 12:00, end time 11:59 (multi
day).
2) Turn it into a recurrent appointment of type daily, frequency 3,
until day +3.
The appointment is correctly displayed with two 2-day occurrences three
days apart.
3) Edit the appointment and select Repetition. Accept existing type,
frequency and end day (now as a date).
The second day of the second occurrence disappears.
4) Repeat 3), but set the end day as an offset (+3).
The second day of the second occurrence reappears.
The inconsistencies have been eliminated, and time-of-day for the until
day is now always 00:00.
Also, until day may equal start day, so midnights should be compared.
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'test%252525252525252525252525252525253fid%252525252525252525252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%2525252525252525252525252525253fid%2525252525252525252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82&id2%2525252525252525252525252525253de25710f65057fb8290024a8fb4a11f1c5d4e2ee7%25252525252525252525252525253fid%25252525252525252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%252525252525252525252525253fid%252525252525252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82&id2%252525252525252525252525253de25710f65057fb8290024a8fb4a11f1c5d4e2ee7%2525252525252525252525253fid%2525252525252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%25252525252525252525253fid%25252525252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%252525252525252525253fid%252525252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%2525252525252525253fid%2525252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%25252525252525253fid%25252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%252525252525253fid%252525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%2525252525253fid%2525252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%25252525253fid%25252525253d1b43893c4cbd4bea4f9098d1333a9e686c6e5c82%252525253fid%252525253de25710f65057fb8290024a8fb4a11f1c5d4e2ee7%2525253fid%2525253de25710f65057fb8290024a8fb4a11f1c5d4e2ee7%25253fid%25253de25710f65057fb8290024a8fb4a11f1c5d4e2ee7%253fid%253d0e46881746c1a639933d1b794bd2438a430c9c3a%3fid%3d1db1108e86ff41a5efc7268145a092fc36418d63?id=2ae30b223ecf79f92bf81af934c40dd645be274c')
0 files changed, 0 insertions, 0 deletions