[folks] eds test: Use the same birthday for the test individual and expected value.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] eds test: Use the same birthday for the test individual and expected value.
- Date: Thu, 20 Dec 2012 04:47:51 +0000 (UTC)
commit 87f79108dfb25743066211d44eb93f736ca4db2e
Author: Travis Reitter <travis reitter collabora co uk>
Date: Mon Dec 17 22:41:35 2012 -0800
eds test: Use the same birthday for the test individual and expected value.
tests/eds/add-persona.vala | 2 +-
tests/eds/set-birthday.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/eds/add-persona.vala b/tests/eds/add-persona.vala
index ef8791f..d742afa 100644
--- a/tests/eds/add-persona.vala
+++ b/tests/eds/add-persona.vala
@@ -249,7 +249,7 @@ public class AddPersonaTests : Folks.TestCase
(owned) v8);
Value? v9 = Value (typeof (DateTime));
- DateTime dobj = new DateTime.utc (1980, 1, 1, 0, 0, 0.0);
+ DateTime dobj = new DateTime.local (1980, 1, 1, 0, 0, 0.0).to_utc ();
v9.set_boxed (dobj);
details.insert (Folks.PersonaStore.detail_key (PersonaDetail.BIRTHDAY),
(owned) v9);
diff --git a/tests/eds/set-birthday.vala b/tests/eds/set-birthday.vala
index e676433..2b4f535 100644
--- a/tests/eds/set-birthday.vala
+++ b/tests/eds/set-birthday.vala
@@ -118,7 +118,7 @@ public class SetBirthdayTests : Folks.TestCase
i.notify["birthday"].connect (this._notify_birthday_cb);
this._found_before_update = true;
- var dobj = new DateTime.utc (1980, 1, 1, 0, 0, 0.0);
+ var dobj = new DateTime.local (1980, 1, 1, 0, 0, 0.0).to_utc ();
foreach (var p in i.personas)
{
((BirthdayDetails) p).birthday = dobj;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]