fixing date format

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

View file

@ -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;
};