date fixed, sortIndex dsiplayed

This commit is contained in:
Adam 2024-11-29 14:26:50 +01:00
parent b73db10324
commit b76e7ec569
1 changed files with 6 additions and 6 deletions

View File

@ -51,16 +51,16 @@
let myDate = auctionDto.startDateUtc;
console.log("dates: " + myDate);
let fixedDate = new Date(myDate + 'Z');
console.log("dates: " + myDate + ", " + localizedDate);
console.log("dates: " + myDate + ", " + fixedDate);
let resultDate = new Date(fixedDate);
console.log("dates: " + myDate + ", " + localizedDate + ", " + resultDate);
console.log("dates: " + myDate + ", " + fixedDate + ", " + resultDate);
// Add a new div as the first child
if (isActive) {
console.log("isActive: " + isActive);
productItem.prepend('<div id="' +
publicInfoOverlayId +
'" class="bg-success p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><p><i class="fa-solid fa-gavel"> ' +
'" class="bg-success p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"> ' +
'LIVE RIGTH NOW' +
'</i></p><span>' +
productToAuctionDto.sortIndex +
@ -69,10 +69,10 @@
console.log("isActive: " + isActive);
productItem.prepend('<div id="' +
publicInfoOverlayId +
'" class="bg-primary p-1 text-white fs-6 text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><p><i class="fa-solid fa-gavel"> ' +
resultDate +
'" class="bg-primary p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"> ' +
resultDate.toLocaleString() +
'</i></p><span>' +
productToAuctionDto.sortIndex +
"No.: " + productToAuctionDto.sortIndex +
'</span></div>');
}