From 3ec6ccc21e8acf47e5d444f7d3045d8170739096 Mon Sep 17 00:00:00 2001 From: Nicky Date: Wed, 11 Jun 2014 22:35:48 +0200 Subject: [PATCH] Nicer formatting. --- indra/llvfs/llvfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llvfs/llvfs.cpp b/indra/llvfs/llvfs.cpp index 03a898abf2..bc095362ef 100755 --- a/indra/llvfs/llvfs.cpp +++ b/indra/llvfs/llvfs.cpp @@ -277,7 +277,7 @@ LLVFS::LLVFS(const std::string& index_filename, const std::string& data_filename time_t tmin; time( &tmin ); tm *pTm = gmtime( &tmin ); - strm << pTm->tm_year+1900 << "-" << pTm->tm_mon << "-" << pTm->tm_mday << "T" << pTm->tm_hour << ":" << pTm->tm_min << ":" << pTm->tm_sec << " " << std::endl; + strm << std::setw(2) << std::setfill('0') << pTm->tm_year+1900 << "-" << pTm->tm_mon+1 << "-" << pTm->tm_mday << "T" << pTm->tm_hour << ":" << pTm->tm_min << ":" << pTm->tm_sec << " " << std::endl; fwrite( strm.str().c_str(), strm.str().size(), 1, fp ); LLFile::close( fp );