[ntpsec commit] Repair a bitched ISO8601 format.

Eric S. Raymond esr at ntpsec.org
Wed Oct 21 10:56:16 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    25556b3dd52c6a638bba79385bf45f170a673ca1
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=25556b3dd52c6a638bba79385bf45f170a673ca1

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Wed Oct 21 06:56:05 2015 -0400

Repair a bitched ISO8601 format.

---

 libntp/humandate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libntp/humandate.c b/libntp/humandate.c
index a9db993..99dad53 100644
--- a/libntp/humandate.c
+++ b/libntp/humandate.c
@@ -27,7 +27,7 @@ humanlogtime(void)
 
 	LIB_GETBUF(bp);
 	
-	snprintf(bp, LIB_BUFLENGTH, "%02d-%02d%02d:%02d:%02d",
+	snprintf(bp, LIB_BUFLENGTH, "%02d-%02dT%02d:%02d:%02d",
 		 tm->tm_mon+1, tm->tm_mday,
 		 tm->tm_hour, tm->tm_min, tm->tm_sec);
 		



More information about the vc mailing list