Commit 837588c6 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Pad the month and day to two digits.

parent d316a94e
......@@ -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};
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;
WCHAR szDate[9];
......
......@@ -1922,7 +1922,7 @@ static void get_date_str(LPSTR date)
{
SYSTEMTIME systime;
static const char date_fmt[] = "%d%d%d";
static const char date_fmt[] = "%d%02d%02d";
GetLocalTime(&systime);
sprintf(date, date_fmt, systime.wYear, systime.wMonth, systime.wDay);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment