X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/blobdiff_plain/1c918146f943052c1876cdc9983597efd1b4964f..0dc92c2de5173e7bcbfafa2fbbfa13226eabfe28:/pw/pw_log.c?ds=sidebyside diff --git a/pw/pw_log.c b/pw/pw_log.c index e11e5ee..fc85828 100644 --- a/pw/pw_log.c +++ b/pw/pw_log.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$FreeBSD$"; #endif /* not lint */ #include @@ -55,7 +55,8 @@ pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...) if ((name = getenv("LOGNAME")) == NULL && (name = getenv("USER")) == NULL) name = "unknown"; - strftime(nfmt, sizeof nfmt, "%d-%b-%Y %R ", t); + /* ISO 8601 International Standard Date format */ + strftime(nfmt, sizeof nfmt, "%Y-%m-%d %T ", t); l = strlen(nfmt); sprintf(nfmt + strlen(nfmt), "[%s:%s%s] %s\n", name, Which[which], Modes[mode], fmt); va_start(argp, fmt);