date format
Bug #814055 reported by
truijllo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Gabriel Hurley |
Bug Description
In template /usr/lib/
Caught ValueError while rendering: time data '2011-07-
in {% for image in images %}
All images have been registered succesfully as described http://
Changed in openstack-dashboard: | |
status: | Fix Committed → In Progress |
Changed in openstack-dashboard: | |
importance: | Undecided → High |
assignee: | nobody → Gabriel Hurley (gabriel-hurley) |
milestone: | none → diablo-integrated-freeze |
Changed in openstack-dashboard: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
In my installation I've fixed django_ openstack/ templatetags/ templatetags/ parse_date. py
adding others conversion attempts and changed the routine iterizing attempts
changing _parse_datetime in :
def _parse_ datetime( dtstr):
"%Y-%m- %dT%H:% M:%S.%f" ,
"%Y-%m- %dT%H:% M:%S", datetime. strptime( dtstr, format_attempt)
format_list=[
"%Y-%m-%d %H:%M:%S.%f",
"%Y-%m-%d %H:%M:%S"
]
for format_attempt in format_list:
try:
return datetime.
except:
pass