[evolution/wip/webkit2] Use newly introduced CAL_STATIC_CAPABILITY_ALL_DAY_EVENT_AS_TIME
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Use newly introduced CAL_STATIC_CAPABILITY_ALL_DAY_EVENT_AS_TIME
- Date: Mon, 29 Feb 2016 16:47:28 +0000 (UTC)
commit 3ab8b70030b22105859016d5c80d1003f2def606
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 12 09:01:32 2015 +0200
Use newly introduced CAL_STATIC_CAPABILITY_ALL_DAY_EVENT_AS_TIME
calendar/gui/dialogs/event-page.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 009603d..d476128 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -1518,6 +1518,24 @@ event_page_fill_component (CompEditorPage *page,
/* We have to add 1 day to DTEND, as it is not inclusive. */
icaltime_adjust (&end_tt, 1, 0, 0, 0);
+
+ if (e_client_check_capability (E_CLIENT (client),
CAL_STATIC_CAPABILITY_ALL_DAY_EVENT_AS_TIME)) {
+ icaltimezone *start_zone;
+
+ start_tt.is_date = FALSE;
+ start_tt.hour = 0;
+ start_tt.minute = 0;
+ start_tt.second = 0;
+
+ end_tt.is_date = FALSE;
+ end_tt.hour = 0;
+ end_tt.minute = 0;
+ end_tt.second = 0;
+
+ start_zone = e_timezone_entry_get_timezone (E_TIMEZONE_ENTRY (priv->start_timezone));
+ start_date.tzid = icaltimezone_get_tzid (start_zone);
+ end_date.tzid = icaltimezone_get_tzid (start_zone);
+ }
} else {
icaltimezone *start_zone;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]