summaryrefslogtreecommitdiffstats
path: root/source/lib/time.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-11-06 13:45:50 +0000
committerAndrew Tridgell <tridge@samba.org>1997-11-06 13:45:50 +0000
commitb4e55cd4765085fc2465c6ff757094e05eabc51e (patch)
treebe89ad30f1d91382f53f9f7d7dcf218ba8c93055 /source/lib/time.c
parentf13dbdf307ccffc15a74e2ffa72da666e53a72b6 (diff)
downloadsamba-b4e55cd4765085fc2465c6ff757094e05eabc51e.tar.gz
samba-b4e55cd4765085fc2465c6ff757094e05eabc51e.tar.xz
samba-b4e55cd4765085fc2465c6ff757094e05eabc51e.zip
change from %D to %m/%d/%Y in timestring(). This doesn't really matter
as it is only for logging but it will prevent people from writing in to say that we are not y2k compliant after running auto-diagnostic tests.
Diffstat (limited to 'source/lib/time.c')
-rw-r--r--source/lib/time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/time.c b/source/lib/time.c
index ad6b04484c5..4eb508115d1 100644
--- a/source/lib/time.c
+++ b/source/lib/time.c
@@ -457,19 +457,19 @@ char *timestring(void )
#ifdef NO_STRFTIME
fstrcpy(TimeBuf, asctime(tm));
#elif defined(CLIX) || defined(CONVEX)
- strftime(TimeBuf,100,"%m/%d/%y %I:%M:%S %p",tm);
+ strftime(TimeBuf,100,"%m/%d/%Y %I:%M:%S %p",tm);
#elif defined(AMPM)
- strftime(TimeBuf,100,"%D %r",tm);
+ strftime(TimeBuf,100,"%m/%d/%Y %r",tm);
#elif defined(TZ_TIME)
{
int zone = TimeDiff(t);
int absZoneMinutes = (zone<0 ? -zone : zone) / 60;
- size_t len = strftime(TimeBuf,sizeof(TimeBuf)-6,"%D %T",tm);
+ size_t len = strftime(TimeBuf,sizeof(TimeBuf)-6,"%m/%d/%Y %T",tm);
sprintf(TimeBuf+len," %c%02d%02d",
zone<0?'+':'-',absZoneMinutes/60,absZoneMinutes%60);
}
#else
- strftime(TimeBuf,100,"%D %T",tm);
+ strftime(TimeBuf,100,"%m/%d/%Y %T",tm);
#endif
return(TimeBuf);
}