Browse Source

Bug Fix: Corrected Timestamp() formatting.

git-svn-id: https://svn.microneil.com/svn/SNFMulti/trunk@49 dc71a809-1921-45c4-985c-09c81d0142d9
wx
madscientist 10 years ago
parent
commit
4407e29999
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      snfLOGmgr.cpp

+ 6
- 6
snfLOGmgr.cpp View File

if(isValidGMT) { if(isValidGMT) {
TimestampBfr TimestampBfr
<< setw(4) << (gmt->tm_year+1900) << setw(4) << (gmt->tm_year+1900)
<< setw(2) << setfill('0')
<< (gmt->tm_mon+1)
<< (gmt->tm_mday)
<< (gmt->tm_hour)
<< (gmt->tm_min)
<< (gmt->tm_sec);
<< setw(2) << setfill('0') << (gmt->tm_mon+1)
<< setw(2) << setfill('0') << (gmt->tm_mday)
<< setw(2) << setfill('0') << (gmt->tm_hour)
<< setw(2) << setfill('0') << (gmt->tm_min)
<< setw(2) << setfill('0') << (gmt->tm_sec)
;
theTimeStamp = TimestampBfr.str(); theTimeStamp = TimestampBfr.str();
} }
return theTimeStamp; // Return a string. return theTimeStamp; // Return a string.

Loading…
Cancel
Save