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):
format_list=[ "%Y-%m-%dT%H:%M:%S.%f", "%Y-%m-%dT%H:%M:%S",
"%Y-%m-%d %H:%M:%S.%f",
"%Y-%m-%d %H:%M:%S"
]
for format_attempt in format_list:
try:
return datetime.datetime.strptime(dtstr, format_attempt)
except:
pass
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