[gnome-calendar] quick-add-popover: only increase day on single day events
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] quick-add-popover: only increase day on single day events
- Date: Wed, 28 Sep 2016 04:10:26 +0000 (UTC)
commit be3833b977a6ad59731423debd1c6af86a2894f2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Sep 28 01:11:14 2016 -0300
quick-add-popover: only increase day on single day events
src/gcal-quick-add-popover.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-quick-add-popover.c b/src/gcal-quick-add-popover.c
index b85d4c6..705cf84 100644
--- a/src/gcal-quick-add-popover.c
+++ b/src/gcal-quick-add-popover.c
@@ -448,7 +448,7 @@ edit_or_create_event (GcalQuickAddPopover *self,
date_end = g_date_time_new (tz,
g_date_time_get_year (self->date_end),
g_date_time_get_month (self->date_end),
- g_date_time_get_day_of_month (self->date_end)+ (all_day ? 1 : 0),
+ g_date_time_get_day_of_month (self->date_end) + (single_day && all_day ? 1
: 0),
all_day ? 0 : g_date_time_get_hour (now) + (is_today ? 1 : 0),
all_day ? 0 : g_date_time_get_minute (now),
all_day ? 0 : g_date_time_get_second (now));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]