Add system time to /info

This change adds daemon's system time as RFC3339Nano to the `/info` endpoint
and shows in a more readable format (UnixDate) in `docker -D info` output.

I will be using this to fix the clock skew between the remote test host and
the CI machines running `docker events`-related tests as they're using `--since`
and `--until` and the timestamps are not matching when daemon is not on the
same machine.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
This commit is contained in:
Ahmet Alp Balkan
2015-03-10 15:29:05 -07:00
parent 1b1cc100f2
commit 2977fd2b7a
8 changed files with 54 additions and 2 deletions
@@ -1452,6 +1452,7 @@ Display system-wide information
"Debug":false,
"NFd": 11,
"NGoroutines":21,
"SystemTime": "2015-03-10T11:11:23.730591467-07:00"
"NEventsListener":0,
"InitPath":"/usr/bin/docker",
"InitSha1":"",