Fix issue date on Windows.
authorCarl Hetherington <cth@carlh.net>
Mon, 17 Sep 2012 11:39:40 +0000 (12:39 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 17 Sep 2012 11:39:40 +0000 (12:39 +0100)
src/metadata.cc

index 7d663eb27a929c5d2f8de8d71cb180a8d12a15f0..7e900e5006cab7991ec9d9949fd0151784da15ad 100644 (file)
@@ -21,6 +21,7 @@
  *  @brief Metadata for writing to the DCP.
  */
 
+#include <time.h>
 #include "metadata.h"
 
 using namespace std;
@@ -36,18 +37,12 @@ Metadata::Metadata ()
        , issuer ("libdcp" LIBDCP_VERSION)
        , creator ("libdcp" LIBDCP_VERSION)
 {
-#ifdef LIBDCP_POSIX    
        char buffer[64];
        time_t now;
        time (&now);
        struct tm* tm = localtime (&now);
        strftime (buffer, 64, "%Y-%m-%dT%I:%M:%S+00:00", tm);
        issue_date = string (buffer);
-#endif
-
-#ifdef LIBDCP_WINDOWS
-       /* XXX */
-#endif 
 }
 
 /** @return Singleton Metadata instance */