juju status --utc does not display utc and is confused
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Ian Booth | ||
1.24 |
Fix Released
|
High
|
Ian Booth |
Bug Description
The --utc flag on juju status claims: "display time as UTC in RFC3339 format".
It does not do that. It is displaying my local time and an offset.
since: 2015-05-
The UTC time is actually 2015-05-
In addition, please consider the following paragraph in RFC3339:
NOTE: ISO 8601 defines date and time separated by "T".
Applications using this syntax may choose, for the sake of
readability, to specify a full-date and full-time separated by
(say) a space character.
It exists because most people hate having the T, and it is only useful to parsers if the time-of-day portion of timestamp is optional. It is not optional here, so we should opt for the readable format.
Changed in juju-core: | |
milestone: | none → 1.25.0 |
importance: | Undecided → High |
status: | New → Triaged |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
tags: | added: status ui |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
I can't reproduce this. I'm GMT+10 and it appears to work as expected:
ian@wallyworld:~$ juju status-history mysql/0
TIME TYPE STATUS MESSAGE
29 May 2015 14:29:13 AEST workload unknown Waiting for agent initialization to finish
29 May 2015 14:29:13 AEST agent allocating
29 May 2015 14:29:22 AEST workload maintenance installing charm software
ian@wallyworld:~$ juju status-history --utc mysql/0 29T04:29: 13Z workload unknown Waiting for agent initialization to finish 29T04:29: 13Z agent allocating 29T04:29: 22Z workload maintenance installing charm software 29T04:29: 22Z agent executing running install hook
TIME TYPE STATUS MESSAGE
2015-05-
2015-05-
2015-05-
2015-05-
Or yaml:
<snip>
workload- status: 29T04:30: 23Z
agent- status: 29T04:30: 26Z
public- address: 52.28.51.113
...
units:
mysql/0:
current: unknown
since: 2015-05-
current: idle
since: 2015-05-
version: 1.24-beta6.1
machine: "0"