From 9b6bb4eb262427d244689e404ec10068e59f27b2 Mon Sep 17 00:00:00 2001 From: Levi Date: Wed, 21 Jun 2017 11:45:35 -0500 Subject: [PATCH 01/11] changed UTC to localtime in ssh key view --- hosting/templates/hosting/base_short.html | 6 ++++++ hosting/templates/hosting/user_keys.html | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/hosting/templates/hosting/base_short.html b/hosting/templates/hosting/base_short.html index 6a2037f7..57bf384b 100644 --- a/hosting/templates/hosting/base_short.html +++ b/hosting/templates/hosting/base_short.html @@ -164,6 +164,12 @@ + + + + + + diff --git a/hosting/templates/hosting/user_keys.html b/hosting/templates/hosting/user_keys.html index 6dd2c823..42f85bdf 100644 --- a/hosting/templates/hosting/user_keys.html +++ b/hosting/templates/hosting/user_keys.html @@ -1,5 +1,6 @@ {% extends "hosting/base_short.html" %} {% load staticfiles bootstrap3 i18n %} +{% load tz %} {% block content %}
@@ -32,7 +33,8 @@ {% for user_key in keys %} {{user_key.name}} - {{user_key.created_at}} + + {{user_key.created_at|date:'Y-m-d H:i' }} Active @@ -92,5 +94,14 @@ {% endif %} + + {%endblock%} From 4f318a6f2df9f79ca59a6ba389c5aa93af3dedb6 Mon Sep 17 00:00:00 2001 From: Levi Date: Wed, 21 Jun 2017 11:48:11 -0500 Subject: [PATCH 02/11] changed UTC to localtime in ssh key view --- hosting/templates/hosting/user_keys.html | 1 - 1 file changed, 1 deletion(-) diff --git a/hosting/templates/hosting/user_keys.html b/hosting/templates/hosting/user_keys.html index 42f85bdf..8637fb81 100644 --- a/hosting/templates/hosting/user_keys.html +++ b/hosting/templates/hosting/user_keys.html @@ -1,6 +1,5 @@ {% extends "hosting/base_short.html" %} {% load staticfiles bootstrap3 i18n %} -{% load tz %} {% block content %}
From ed6fdcb049a2569fdc4e8d6d23227ce2bd0563dd Mon Sep 17 00:00:00 2001 From: Levi Date: Wed, 21 Jun 2017 12:26:09 -0500 Subject: [PATCH 03/11] fixed ssh key time --- hosting/templates/hosting/user_keys.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hosting/templates/hosting/user_keys.html b/hosting/templates/hosting/user_keys.html index 8637fb81..bea285f9 100644 --- a/hosting/templates/hosting/user_keys.html +++ b/hosting/templates/hosting/user_keys.html @@ -33,7 +33,7 @@ {{user_key.name}} - {{user_key.created_at|date:'Y-m-d H:i' }} + {{user_key.created_at|date:'Y-m-d H:i' }} Active @@ -95,9 +95,12 @@ From f1f6074c78dcdacb869a0b52b76faec45f7d62b9 Mon Sep 17 00:00:00 2001 From: Levi Date: Wed, 21 Jun 2017 12:49:29 -0500 Subject: [PATCH 04/11] fixed time --- hosting/templates/hosting/user_keys.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hosting/templates/hosting/user_keys.html b/hosting/templates/hosting/user_keys.html index bea285f9..a4a0c2cf 100644 --- a/hosting/templates/hosting/user_keys.html +++ b/hosting/templates/hosting/user_keys.html @@ -93,17 +93,23 @@ {% endif %} + + {%endblock%} From 339e20d0b7b2ca83a118964a08a86a0431e34420 Mon Sep 17 00:00:00 2001 From: Levi Date: Wed, 21 Jun 2017 13:24:38 -0500 Subject: [PATCH 05/11] changd date format on orders view --- hosting/templates/hosting/order_detail.html | 15 ++++++++++++++- hosting/templates/hosting/orders.html | 2 +- hosting/templates/hosting/user_keys.html | 2 -- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index 1eec7f99..c212d248 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -35,7 +35,7 @@
{% trans "Billed To:"%}
- {{order.created_at}}

+ {{order.created_at}}

{% trans "Status:"%}
+ + window.onload = function () { + var locale_date = new Date(document.getElementById("order-created_at").textContent + ' UTC'); + locale_date = moment(locale_date).format("YYYY-MM-DD h:mm:ss a"); + document.getElementById('order-created_at').innerHTML = locale_date; + + }; + + {%endblock%} + diff --git a/hosting/templates/hosting/orders.html b/hosting/templates/hosting/orders.html index b52e7fc0..99aab23e 100644 --- a/hosting/templates/hosting/orders.html +++ b/hosting/templates/hosting/orders.html @@ -24,7 +24,7 @@ {% for order in orders %} {{ order.id }} - {{ order.created_at }} + {{ order.created_at | date:"M d, Y" }} {{ order.price }} CHF {% if order.approved %} {% trans "Approved"%} diff --git a/hosting/templates/hosting/user_keys.html b/hosting/templates/hosting/user_keys.html index a4a0c2cf..571d423a 100644 --- a/hosting/templates/hosting/user_keys.html +++ b/hosting/templates/hosting/user_keys.html @@ -95,11 +95,9 @@