[evolution] All-day event covers two days in the mini-calendar
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] All-day event covers two days in the mini-calendar
- Date: Wed, 15 Jul 2015 19:57:59 +0000 (UTC)
commit e21396e0f550b0563581f161c45228611bed316c
Author: Milan Crha <mcrha redhat com>
Date: Wed Jul 15 21:56:53 2015 +0200
All-day event covers two days in the mini-calendar
Typo in the end time calculation, instead of subtracting one second
it was adding one second.
calendar/gui/tag-calendar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/tag-calendar.c b/calendar/gui/tag-calendar.c
index 2f00f04..ffb2dc1 100644
--- a/calendar/gui/tag-calendar.c
+++ b/calendar/gui/tag-calendar.c
@@ -403,7 +403,7 @@ get_component_julian_range (ECalClient *client,
zone, &instance_start, &start_is_date, &instance_end, &end_is_date, NULL);
*start_julian = encode_timet_to_julian (instance_start, start_is_date, zone);
- *end_julian = encode_timet_to_julian (instance_end - (instance_end == instance_start ? 0 : - 1),
end_is_date, zone);
+ *end_julian = encode_timet_to_julian (instance_end - (instance_end == instance_start ? 0 : 1),
end_is_date, zone);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]