Fix for issue 7902.

Use utils.RFC3339NanoFixed ("2006-01-02T15:04:05.000000000Z07:00")
instead of time.RFC3339Nano to format our log timestamps - this way
things are aligned, in particular the nano seconds are padded with zeros

Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
Doug Davis
2014-09-16 10:28:37 -07:00
parent 25f7840993
commit cd7a5f5c09
6 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -1687,7 +1687,7 @@ func (cli *DockerCli) CmdEvents(args ...string) error {
loc = time.FixedZone(time.Now().Zone())
)
var setTime = func(key, value string) {
format := time.RFC3339Nano
format := utils.RFC3339NanoFixed
if len(value) < len(format) {
format = format[:len(value)]
}