From c32f2abcb1b584489dc70f3083dcce0e060d4c1f Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Sun, 5 Apr 2015 22:42:22 -0700 Subject: [PATCH] improved time format (include seconds) --- client.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 81fefef..7306802 100644 --- a/client.go +++ b/client.go @@ -66,7 +66,12 @@ func (u *user) Recv() { close(u.quit) break } - payload := fmt.Sprintf("%s | %s: %s", time.Now().Format("06-01-02 15:04"), u.name, msg) + payload := fmt.Sprintf( + "%s | %s: %s", + time.Now().Format("06-01-02 15:04:05"), + u.name, + msg, + ) logs.Debug(payload) u.chatter <- payload }