Nicer formatting.
parent
4c7b79584d
commit
3ec6ccc21e
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in New Issue