Adapt for changes in parent branch, and test churn.
[libdcp.git] / src / decrypted_kdm.cc
index 9468aabcf1028625031e522e8afd4b7716a5fac2..1f68c2835cfc68861249a582d273a07756345f92 100644 (file)
@@ -313,9 +313,9 @@ DecryptedKDM::encrypt (
        DCP_ASSERT (!_keys.empty ());
 
        BOOST_FOREACH (dcp::Certificate i, signer->leaf_to_root()) {
-               if (day_greater_than_or_equal(i.not_before(), _not_valid_before)) {
+               if (day_greater_than_or_equal(dcp::LocalTime(i.not_before()), _not_valid_before)) {
                        throw BadKDMDateError (true);
-               } else if (day_less_than_or_equal(i.not_after(), _not_valid_after)) {
+               } else if (day_less_than_or_equal(dcp::LocalTime(i.not_after()), _not_valid_after)) {
                        throw BadKDMDateError (false);
                }
        }