Author: janderwald
Date: Sun Jun 4 17:20:09 2006
New Revision: 22204
URL:
http://svn.reactos.ru/svn/reactos?rev=22204&view=rev
Log:
_strdate should return maximum 8 chars
does not work yet
Modified:
trunk/reactos/lib/crt/time/strdate.c
trunk/reactos/lib/crt/time/wstrdate.c
Modified: trunk/reactos/lib/crt/time/strdate.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/lib/crt/time/strdate.c?rev=…
==============================================================================
--- trunk/reactos/lib/crt/time/strdate.c (original)
+++ trunk/reactos/lib/crt/time/strdate.c Sun Jun 4 17:20:09 2006
@@ -24,6 +24,7 @@
}
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;
}
Modified: trunk/reactos/lib/crt/time/wstrdate.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/lib/crt/time/wstrdate.c?rev…
==============================================================================
--- trunk/reactos/lib/crt/time/wstrdate.c (original)
+++ trunk/reactos/lib/crt/time/wstrdate.c Sun Jun 4 17:20:09 2006
@@ -24,6 +24,6 @@
}
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;
}