msi: Pad the month and day to two digits.
This commit is contained in:
parent
d316a94ecb
commit
837588c6a3
|
@ -3978,7 +3978,7 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
|
||||||
{'P','r','o','d','u','c','t','V','e','r','s','i','o','n',0};
|
{'P','r','o','d','u','c','t','V','e','r','s','i','o','n',0};
|
||||||
|
|
||||||
SYSTEMTIME systime;
|
SYSTEMTIME systime;
|
||||||
static const WCHAR date_fmt[] = {'%','i','%','i','%','i',0};
|
static const WCHAR date_fmt[] = {'%','i','%','0','2','i','%','0','2','i',0};
|
||||||
LPWSTR upgrade_code;
|
LPWSTR upgrade_code;
|
||||||
WCHAR szDate[9];
|
WCHAR szDate[9];
|
||||||
|
|
||||||
|
|
|
@ -1922,7 +1922,7 @@ static void get_date_str(LPSTR date)
|
||||||
{
|
{
|
||||||
SYSTEMTIME systime;
|
SYSTEMTIME systime;
|
||||||
|
|
||||||
static const char date_fmt[] = "%d%d%d";
|
static const char date_fmt[] = "%d%02d%02d";
|
||||||
GetLocalTime(&systime);
|
GetLocalTime(&systime);
|
||||||
sprintf(date, date_fmt, systime.wYear, systime.wMonth, systime.wDay);
|
sprintf(date, date_fmt, systime.wYear, systime.wMonth, systime.wDay);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue