summaryrefslogtreecommitdiff
path: root/src/metadata.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-19 21:46:01 +0000
committerCarl Hetherington <cth@carlh.net>2014-03-19 21:46:01 +0000
commit7702e5d643440e75369078863b34f8a574ee4143 (patch)
treee01edc51718fd6c475b449748ff7fa6e5c526bc9 /src/metadata.cc
parentc91aa27e13703874c944fed763b5b039ceae71d2 (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.cc8
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 ();
}