Fixed time appearance in thumbnail view (now shows leading zeroes in min and sec)
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <multilangmgr.h>
|
||||
#include <thumbnail.h>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <options.h>
|
||||
#include <mytime.h>
|
||||
#include <stdio.h>
|
||||
@@ -286,7 +287,10 @@ void Thumbnail::generateExifDateTimeStrings () {
|
||||
ostr << (char)dateFormat[i];
|
||||
spec = false;
|
||||
}
|
||||
ostr << " " << (int)cfs.hour << ":" << (int)cfs.min << ":" << (int)cfs.sec;
|
||||
|
||||
ostr << " " << (int)cfs.hour;
|
||||
ostr << ":" << std::setw(2) << std::setfill('0') << (int)cfs.min;
|
||||
ostr << ":" << std::setw(2) << std::setfill('0') << (int)cfs.sec;
|
||||
|
||||
dateTimeString = ostr.str ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user