PPCoin: Fix timestamp format for windows build
authorRichard Smith <iceeatscream@gmail.com>
Tue, 31 Jul 2012 20:57:04 +0000 (21:57 +0100)
committerRichard Smith <iceeatscream@gmail.com>
Tue, 31 Jul 2012 20:57:04 +0000 (21:57 +0100)
        Windows build instruction with miniupnp client library

src/makefile.mingw
src/util.h

index 98ed2cd..4f5202c 100644 (file)
 #     cd c:\boost-1.47.0-mgw
 #     bjam toolset=gcc --build-type=complete stage
 #
+# - Build Miniupnp library version: 1.6
+#   download from http://miniupnp.free.fr/files/
+#   file name is miniupnpc-1.6.20120509.tar.gz
+#   Extract to c:\miniupnpc-1.6-mgw
+#   In MinGW MSYS shell:
+#     cd /c/miniupnpc-1.6-mgw
+#     make -f Makefile.mingw
+#     mkdir miniupnpc
+#     cp *.h miniupnpc/
+#
 # - Build ppcoind.exe
 #   in MinGW MSYS
 #     cd ppcoin/src
-#     make ppcoind.exe -f makefile.mingw USE_UPNP=
+#     make ppcoind.exe -f makefile.mingw USE_UPNP=1
 #
 #
 
index 8c00938..752bb4d 100644 (file)
@@ -450,7 +450,7 @@ inline std::string DateTimeStrFormat(const char* pszFormat, int64 nTime)
     return pszTime;
 }
 
-static const std::string strTimestampFormat = "%F %H:%M:%S";
+static const std::string strTimestampFormat = "%Y-%m-%d %H:%M:%S UTC";
 inline std::string DateTimeStrFormat(int64 nTime)
 {
     return DateTimeStrFormat(strTimestampFormat.c_str(), nTime);