Use "%H:%M:%S" instead of "%T" in strftime() call since it looks to be

more portable.
This commit is contained in:
Wayne Davison
2004-02-02 21:02:13 +00:00
parent 06d76beb28
commit b22260749f

2
util.c
View File

@@ -956,7 +956,7 @@ char *timestring(time_t t)
struct tm *tm = localtime(&t);
#ifdef HAVE_STRFTIME
strftime(TimeBuf,sizeof(TimeBuf)-1,"%Y/%m/%d %T",tm);
strftime(TimeBuf,sizeof(TimeBuf)-1,"%Y/%m/%d %H:%M:%S",tm);
#else
strlcpy(TimeBuf, asctime(tm), sizeof(TimeBuf));
#endif