- myBirth.setTzContext(anna::time::functions::getLocalTz().getValue().c_str());
- birthday.setTzContext(anna::time::functions::getLocalTz().getValue().c_str()); // Go from "EET" to "CET"
- // TODO: review the following test case:
- //BOOST_REQUIRE_EQUAL(myBirth.yyyymmddHHmmss(), birthday.yyyymmddHHmmss());
+
+ myBirth.setTz();
+ birthday.setTz();
+ BOOST_REQUIRE_EQUAL(myBirth.asString(), birthday.asString());
+ BOOST_REQUIRE_EQUAL(myBirth.yyyymmddHHmmss(), birthday.yyyymmddHHmmss());
+
+ myBirth.setTz("GMT");
+ BOOST_REQUIRE_EQUAL(myBirth.yyyymmddHHmmss(), "19741219091500");
+