From 8e5654bdb586863c81f58492e5622fb209b90949 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Fri, 6 Oct 2017 04:11:40 +0530 Subject: [PATCH] date time converted to locale --- hosting/static/hosting/css/commons.css | 8 +++++++ hosting/templates/hosting/order_detail.html | 24 +++++++++++++-------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/hosting/static/hosting/css/commons.css b/hosting/static/hosting/css/commons.css index 317caabc..cdf078a0 100644 --- a/hosting/static/hosting/css/commons.css +++ b/hosting/static/hosting/css/commons.css @@ -375,4 +375,12 @@ outline: none; color: #999; fill: #999; +} + +.locale_date { + opacity: 0; +} + +.locale_date.done{ + opacity: 1; } \ No newline at end of file diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index 60e50513..79dd1e82 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -32,11 +32,11 @@ {% endif %}

{% trans "Date" %}: - + {% if order %} - {{order.created_at|date:'Y-m-d H:i'}} + {{order.created_at|date:'Y-m-d h:i a'}} {% else %} - {% now "Y-m-d H:i" %} + {% now "Y-m-d h:i a" %} {% endif %}

@@ -107,7 +107,9 @@ {% if vm.created_at %}

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

{% endif %}

@@ -194,12 +196,16 @@ {%endblock%}