fixing date format
This commit is contained in:
parent
339e20d0b7
commit
1897f4b5f6
1 changed files with 2 additions and 1 deletions
|
@ -88,6 +88,7 @@
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
var locale_date = new Date(document.getElementById("order-created_at").textContent + ' UTC');
|
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");
|
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;
|
document.getElementById('order-created_at').innerHTML = locale_date;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue