Nicer formatting.

Nicky 2014-06-11 22:35:48 +02:00
parent 4c7b79584d
commit 3ec6ccc21e
1 changed files with 1 additions and 1 deletions

View File

@ -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 );