fixing date format

This commit is contained in:
Levi 2017-06-21 13:28:48 -05:00
parent 339e20d0b7
commit 1897f4b5f6

View file

@ -68,7 +68,7 @@
<hr>
<p><b>{% trans "Disk space"%}</b> <span class="pull-right">{{vm.disk_size}} GB</span></p>
<hr>
<h4>{% trans "Total"%}<p class="pull-right"><b>{{vm.price}} CHF</b></p></h4>
<h4>{% trans "Total"%}<p class="pull-right"><b>{{vm.price}} CHF</b></p></h4>
</div>
<br/>
{% url 'hosting:payment' as payment_url %}
@ -88,6 +88,7 @@
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");
console.log("locale_date");
document.getElementById('order-created_at').innerHTML = locale_date;
};