aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-13 09:22:16 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-03-13 09:22:16 -0500
commit1a8ea8bd7c6f072a187a00df339a04ca6ce382c2 (patch)
tree5cc71f030dffd1a632d467ec7e55123373b1d4d7 /tests
parent78eb8516b97f0085646ef35560795f328f05ad8a (diff)
downloadayatana-indicator-datetime-1a8ea8bd7c6f072a187a00df339a04ca6ce382c2.tar.gz
ayatana-indicator-datetime-1a8ea8bd7c6f072a187a00df339a04ca6ce382c2.tar.bz2
ayatana-indicator-datetime-1a8ea8bd7c6f072a187a00df339a04ca6ce382c2.zip
sync the unit tests to the evolution startdate changes in r319
Diffstat (limited to 'tests')
-rw-r--r--tests/test-live-actions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-live-actions.cpp b/tests/test-live-actions.cpp
index ffba4ce..d6ef424 100644
--- a/tests/test-live-actions.cpp
+++ b/tests/test-live-actions.cpp
@@ -284,7 +284,9 @@ TEST_F(LiveActionsFixture, OpenPlannerAt)
{
const auto now = DateTime::NowLocal();
m_actions->open_planner_at(now);
- const std::string expected = now.format("evolution \"calendar:///?startdate=%Y%m%d\"");
+ const auto today_begins = now.add_full(0, 0, 0, -now.hour(), -now.minute(), -now.seconds());
+ const auto gmt = today_begins.to_timezone("UTC");
+ const auto expected = gmt.format("evolution \"calendar:///?startdate=%Y%m%dT%H%M%SZ\"");
EXPECT_EQ(expected, m_live_actions->last_cmd);
}