Fix build.
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Jun 2016 11:18:40 +0000 (12:18 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 2 Jun 2016 11:18:40 +0000 (12:18 +0100)
src/lib/send_kdm_email_job.cc
src/tools/dcpomatic_kdm_cli.cc

index 19040dc4f5cc3712702673d79a8184735b6b1724..82fb55d802a8566b494b79de9466dedff552e3d9 100644 (file)
@@ -70,7 +70,7 @@ void
 SendKDMEmailJob::run ()
 {
        set_progress_unknown ();
-       CinemaKDMs::email (_film_name, _cpl_name, _cinema_kdms, _from, _to, _log);
+       CinemaKDMs::email (_film_name, _cpl_name, _cinema_kdms, dcp::LocalTime (_from), dcp::LocalTime (_to), _log);
        set_progress (1);
        set_state (FINISHED_OK);
 }
index 4de9533901e6045183da9ff6ee3b8b9f71dbd55d..df828416f3fe5ad3e8d6ef3148a768ba7cf9ac6e 100644 (file)
@@ -256,7 +256,9 @@ int main (int argc, char* argv[])
                }
 
                dcp::Certificate certificate (dcp::file_to_string (certificate_file));
-               dcp::EncryptedKDM kdm = film->make_kdm (certificate, vector<dcp::Certificate>(), cpl, valid_from.get(), valid_to.get(), formulation);
+               dcp::EncryptedKDM kdm = film->make_kdm (
+                       certificate, vector<dcp::Certificate>(), cpl, dcp::LocalTime (valid_from.get()), dcp::LocalTime (valid_to.get()), formulation
+                       );
                kdm.as_xml (output);
                if (verbose) {
                        cout << "Generated KDM " << output << " for certificate.\n";