mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
_strdate should return maximum 8 chars
does not work yet svn path=/trunk/; revision=22204
This commit is contained in:
@@ -24,6 +24,7 @@ char* _strdate(char* datestr)
|
||||
}
|
||||
t = time(NULL);
|
||||
d = localtime(&t);
|
||||
sprintf(dt,"%d/%d/%d",d->tm_mday,d->tm_mon+1,d->tm_year);
|
||||
|
||||
sprintf(dt,"%.2d/%.2d/%.2d",d->tm_mday,d->tm_mon+1,d->tm_year );
|
||||
return dt;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@ wchar_t* _wstrdate(wchar_t* datestr)
|
||||
}
|
||||
t = time(NULL);
|
||||
d = localtime(&t);
|
||||
swprintf(dt,L"%d/%d/%d",d->tm_mday,d->tm_mon+1,d->tm_year);
|
||||
swprintf(dt,L"%.2d/%.2d/%.2d",d->tm_mday,d->tm_mon+1,d->tm_year);
|
||||
return dt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user