Use %S instead of %s for strftime seconds when printing build time

This commit is contained in:
Alan Coopersmith 2007-07-13 14:54:45 -07:00
parent c0e91777a9
commit 031b009ea6

View File

@ -1731,7 +1731,7 @@ xf86PrintBanner()
t.tm_sec = BUILD_TIME % 100;
t.tm_min = (BUILD_TIME / 100) % 100;
t.tm_hour = (BUILD_TIME / 10000) % 100;
if (strftime(buf, sizeof(buf), "%d %B %Y %I:%M:%s%p", &t))
if (strftime(buf, sizeof(buf), "%d %B %Y %I:%M:%S%p", &t))
ErrorF("Build Date: %s\n", buf);
#else
if (strftime(buf, sizeof(buf), "%d %B %Y", &t))