diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-03-19 21:46:01 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-03-19 21:46:01 +0000 |
| commit | 7702e5d643440e75369078863b34f8a574ee4143 (patch) | |
| tree | e01edc51718fd6c475b449748ff7fa6e5c526bc9 /src/metadata.cc | |
| parent | c91aa27e13703874c944fed763b5b039ceae71d2 (diff) | |
Considerable re-work of KDM class to express the difference between encrypted and unencrypted KDMs.
Diffstat (limited to 'src/metadata.cc')
| -rw-r--r-- | src/metadata.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/metadata.cc b/src/metadata.cc index e3382613..e2e19f3c 100644 --- a/src/metadata.cc +++ b/src/metadata.cc @@ -23,9 +23,7 @@ #include "metadata.h" #include "util.h" -#ifdef LIBDCP_WINDOWS -#include <windows.h> -#endif +#include "local_time.h" #include <sstream> #include <iomanip> #include <time.h> @@ -52,7 +50,5 @@ XMLMetadata::XMLMetadata () void XMLMetadata::set_issue_date_now () { - time_t now = time (0); - struct tm* tm = localtime (&now); - issue_date = tm_to_string (tm); + issue_date = LocalTime().as_string (); } |
