diff --git a/datacenterlight/templates/datacenterlight/order_detail.html b/datacenterlight/templates/datacenterlight/order_detail.html
index 53a5d427..31933e12 100644
--- a/datacenterlight/templates/datacenterlight/order_detail.html
+++ b/datacenterlight/templates/datacenterlight/order_detail.html
@@ -186,16 +186,5 @@
{%endblock%}
\ No newline at end of file
diff --git a/hosting/static/hosting/js/virtual_machine_detail.js b/hosting/static/hosting/js/virtual_machine_detail.js
index 43a5a01d..8f90933b 100644
--- a/hosting/static/hosting/js/virtual_machine_detail.js
+++ b/hosting/static/hosting/js/virtual_machine_detail.js
@@ -134,3 +134,15 @@ $(document).ready(function() {
$(this).find('.modal-footer .btn').addClass('hide');
})
});
+
+window.onload = function () {
+ var locale_dates = document.getElementsByClassName("locale_date");
+ 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);
+ var outputFormat = locale_dates[i].getAttribute('data-format') || oldDate._f;
+ locale_dates[i].innerHTML = oldDate.local().format(outputFormat);
+ locale_dates[i].className += ' done';
+ }
+};
\ No newline at end of file
diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html
index 0f92ef67..4a62e9fa 100644
--- a/hosting/templates/hosting/order_detail.html
+++ b/hosting/templates/hosting/order_detail.html
@@ -256,17 +256,6 @@
{%endblock%}