Correct date display with padding

This commit is contained in:
Xele02 2012-12-14 23:40:02 +01:00
parent e785662747
commit 825e058c94

View File

@ -227,7 +227,7 @@ void PSPSaveDialog::DisplaySaveDataInfo1()
else
{
char txt[1024];
sprintf(txt,"%s\n%d/%d/%d %d:%d %d KB\n%s\n%s"
sprintf(txt,"%s\n%02d/%02d/%d %02d:%02d %d KB\n%s\n%s"
, param.GetFileInfo(currentSelectedSave).title
, param.GetFileInfo(currentSelectedSave).modif_time.tm_mday
, param.GetFileInfo(currentSelectedSave).modif_time.tm_mon + 1
@ -251,7 +251,7 @@ void PSPSaveDialog::DisplaySaveDataInfo2()
else
{
char txt[1024];
sprintf(txt,"%s\n%d/%d/%d %d:%d\n%d KB"
sprintf(txt,"%s\n%02d/%02d/%d %02d:%02d\n%d KB"
, param.GetFileInfo(currentSelectedSave).saveTitle
, param.GetFileInfo(currentSelectedSave).modif_time.tm_mday
, param.GetFileInfo(currentSelectedSave).modif_time.tm_mon + 1