From 3f4d409f21bbb1f79f149a5ee66dcddaa505ddb1 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 9 Mar 2014 21:08:47 -0500 Subject: decouple the planner's states; need three separate sets: upcoming-now (for alarms in the current time), upcoming-calendar (to show events coming from the selected calendar date), and calendar-month (all the appointments in the month displayed in the menu). --- src/actions-live.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/actions-live.cpp') diff --git a/src/actions-live.cpp b/src/actions-live.cpp index ccc7fcf..ca9ca9b 100644 --- a/src/actions-live.cpp +++ b/src/actions-live.cpp @@ -97,7 +97,7 @@ void LiveActions::open_planner_at(const DateTime& dt) void LiveActions::open_appointment(const std::string& uid) { - for(const auto& appt : state()->planner->upcoming.get()) + for(const auto& appt : state()->calendar_upcoming->appointments().get()) { if(appt.uid != uid) continue; -- cgit v1.2.3 From 78eb8516b97f0085646ef35560795f328f05ad8a Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 12 Mar 2014 19:13:27 -0500 Subject: When invoking Evolution's calendar via the commandline and the 'startdate' argument, use a UTC argument for startdate. --- src/actions-live.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/actions-live.cpp') diff --git a/src/actions-live.cpp b/src/actions-live.cpp index ca9ca9b..c179274 100644 --- a/src/actions-live.cpp +++ b/src/actions-live.cpp @@ -91,7 +91,9 @@ void LiveActions::open_phone_clock_app() void LiveActions::open_planner_at(const DateTime& dt) { - auto cmd = dt.format("evolution \"calendar:///?startdate=%Y%m%d\""); + const auto day_begins = dt.add_full(0, 0, 0, -dt.hour(), -dt.minute(), -dt.seconds()); + const auto gmt = day_begins.to_timezone("UTC"); + auto cmd = gmt.format("evolution \"calendar:///?startdate=%Y%m%dT%H%M%SZ\""); execute_command(cmd.c_str()); } -- cgit v1.2.3