From: Richard Smith Date: Tue, 31 Jul 2012 20:57:04 +0000 (+0100) Subject: PPCoin: Fix timestamp format for windows build X-Git-Tag: v0.4.0-unstable~116 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=1e3f8efde20dd2244de1b888195b876fc2cec560 PPCoin: Fix timestamp format for windows build Windows build instruction with miniupnp client library --- diff --git a/src/makefile.mingw b/src/makefile.mingw index 98ed2cd..4f5202c 100644 --- a/src/makefile.mingw +++ b/src/makefile.mingw @@ -42,10 +42,20 @@ # 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 # # diff --git a/src/util.h b/src/util.h index 8c00938..752bb4d 100644 --- a/src/util.h +++ b/src/util.h @@ -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);