Cinder API doesn't report time zone info
Bug #1288979 reported by
Cory Stone
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
Dates displayed in Cinder don't have tz info.
| created_at | 2014-03-
Dates from Nova seem to.
| created | 2014-03-
Changed in cinder: | |
assignee: | nobody → Liusheng (liusheng) |
Changed in cinder: | |
assignee: | Liusheng (liusheng) → nobody |
tags: | added: api |
Changed in cinder: | |
importance: | Undecided → Wishlist |
Changed in cinder: | |
assignee: | nobody → Qiang Zhang (strony-zhang) |
Changed in cinder: | |
assignee: | Qiang Zhang (strony-zhang) → Yuriy Nesenenko (ynesenenko) |
To post a comment you must log in.
Hi Cory, it seems that the same codes about time format below are used in almost each openstack component.
Take the cinder for an example, in cinder/ openstack/ common/ timeutiles. py TIME_FORMAT_ SUBSECOND = '%Y-%m- %dT%H:% M:%S.%f' TIME_FORMAT = '%Y-%m-%dT%H:%M:%S' TIME_FORMAT_ SUBSECOND
# ISO 8601 extended time format with microseconds
_ISO8601_
_ISO8601_
PERFECT_TIME_FORMAT = _ISO8601_
"| created_at | 2014-03- 06T20:37: 03.000000 |" is the former. 06T20:36: 55Z |" seems to be the latter.
"| created | 2014-03-
Do you expect the dates displayed in cinder should be the latter or other format?