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