add the timeutils package

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
unclejack
2014-09-17 14:30:08 +03:00
parent 41e625eb7c
commit 9ae3134dc9
7 changed files with 34 additions and 16 deletions
+2 -1
View File
@@ -34,6 +34,7 @@ import (
"github.com/docker/docker/pkg/parsers/filters"
"github.com/docker/docker/pkg/signal"
"github.com/docker/docker/pkg/term"
"github.com/docker/docker/pkg/timeutils"
"github.com/docker/docker/pkg/units"
"github.com/docker/docker/registry"
"github.com/docker/docker/runconfig"
@@ -1650,7 +1651,7 @@ func (cli *DockerCli) CmdEvents(args ...string) error {
loc = time.FixedZone(time.Now().Zone())
)
var setTime = func(key, value string) {
format := utils.RFC3339NanoFixed
format := timeutils.RFC3339NanoFixed
if len(value) < len(format) {
format = format[:len(value)]
}