aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-12 19:13:27 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-03-12 19:13:27 -0500
commit78eb8516b97f0085646ef35560795f328f05ad8a (patch)
treeac06ead8b024ec7138d07cc36e7a6828d686bd98 /src
parent3f4d409f21bbb1f79f149a5ee66dcddaa505ddb1 (diff)
downloadayatana-indicator-datetime-78eb8516b97f0085646ef35560795f328f05ad8a.tar.gz
ayatana-indicator-datetime-78eb8516b97f0085646ef35560795f328f05ad8a.tar.bz2
ayatana-indicator-datetime-78eb8516b97f0085646ef35560795f328f05ad8a.zip
When invoking Evolution's calendar via the commandline and the 'startdate' argument, use a UTC argument for startdate.
Diffstat (limited to 'src')
-rw-r--r--src/actions-live.cpp4
1 files changed, 3 insertions, 1 deletions
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());
}