From 88781e992c9e3faad02f8392ac268a09a9630764 Mon Sep 17 00:00:00 2001
From: Arvind Tiwari <tiwariav@gmail.com>
Date: Fri, 6 Oct 2017 04:20:38 +0530
Subject: [PATCH] 24 hr fix

---
 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 d11e915a..fe200f6e 100644
--- a/hosting/templates/hosting/order_detail.html
+++ b/hosting/templates/hosting/order_detail.html
@@ -108,7 +108,7 @@
                             <p>
                                 <span>{% trans "Period" %}: </span>
                                 <span>
-                                    <span class="locale_date" data-format="YYYY/MM/DD">{{ vm.created_at|date:'Y-m-d H:i' }}</span> - <span class="locale_date" data-format="YYYY/MM/DD">{{ subscription_end_date|date:'Y-m-d H:i' }}</span>
+                                    <span class="locale_date" data-format="YYYY/MM/DD">{{ vm.created_at|date:'Y-m-d h:i a' }}</span> - <span class="locale_date" data-format="YYYY/MM/DD">{{ subscription_end_date|date:'Y-m-d h:i a' }}</span>
                                 </span>
                             </p>
                         {% 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 HH:mm']
+        var formats = ['YYYY-MM-DD hh:mm a']
         var i;
         for (i = 0; i < locale_dates.length; i++) {
             var oldDate = moment.utc(locale_dates[i].textContent, formats);