From d3d57ade372f0517bb9569873a71992e013199b9 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Fri, 6 Oct 2017 04:16:58 +0530 Subject: [PATCH] formats fixed --- hosting/templates/hosting/order_detail.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index 79dd1e82..d11e915a 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -108,7 +108,7 @@

{% trans "Period" %}: - {{ vm.created_at }} - {{ subscription_end_date }} + {{ vm.created_at|date:'Y-m-d H:i' }} - {{ subscription_end_date|date:'Y-m-d H:i' }}

{% endif %} @@ -198,7 +198,7 @@ var create_vm_error_message = '{{err_msg|safe}}'; window.onload = function () { var locale_dates = document.getElementsByClassName("locale_date"); - var formats = ['YYYY-MM-DD hh:mm a', 'YYYY/MM/DD'] + var formats = ['YYYY-MM-DD hh:mm a', 'YYYY-MM-DD HH:mm'] var i; for (i = 0; i < locale_dates.length; i++) { var oldDate = moment.utc(locale_dates[i].textContent, formats);