diff --git a/mistraldashboard/default/utils.py b/mistraldashboard/default/utils.py index e69fe53..da6d63a 100644 --- a/mistraldashboard/default/utils.py +++ b/mistraldashboard/default/utils.py @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +from dateutil import parser from django.template.loader import render_to_string -import iso8601 import json TYPES = { @@ -53,7 +53,7 @@ def booleanfield(x): def humantime(x): return render_to_string("mistral/default/_humantime.html", - {"datetime": iso8601.parse_date(x)}) + {"datetime": parser.parse(x)}) def prettyprint(x): diff --git a/requirements.txt b/requirements.txt index b9cb2b1..e37aa64 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ # process, which may cause wedges in the gate later. pbr!=2.1.0,>=2.0.0 # Apache-2.0 -iso8601>=0.1.11 # MIT python-mistralclient>=4.3.0 # Apache-2.0 PyYAML>=3.12 # MIT -horizon>=17.1.0 # Apache-2.0 + +horizon>=23.1.1 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index 9bebdfc..a6b541e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -6,6 +6,3 @@ nodeenv>=0.9.4 # BSD selenium>=2.50.1 # Apache-2.0 xvfbwrapper>=0.1.3 #license: MIT stestr>=2.0.0 # Apache-2.0 - -# Horizon requirements -django-compressor>=2.0 # MIT