Fix log timestamp inconsistency when including seconds

This commit is contained in:
Inusaito Sayori
2013-09-16 14:31:58 -04:00
parent cb6dec62ec
commit f73caef7a5

View File

@@ -92,7 +92,7 @@ std::string LLLogChat::timestamp(bool withdate)
std::string text;
if (withdate)
if (withseconds)
text = llformat("[%d-%02d-%02d %02d:%02d:%02d] ", (timep->tm_year-100)+2000, timep->tm_mon+1, timep->tm_mday, timep->tm_hour, timep->tm_min, timep->tm_sec);
text = llformat("[%d/%02d/%02d %02d:%02d:%02d] ", (timep->tm_year-100)+2000, timep->tm_mon+1, timep->tm_mday, timep->tm_hour, timep->tm_min, timep->tm_sec);
else
text = llformat("[%d/%02d/%02d %02d:%02d] ", (timep->tm_year-100)+2000, timep->tm_mon+1, timep->tm_mday, timep->tm_hour, timep->tm_min);
else