date fixed, sortIndex dsiplayed
This commit is contained in:
parent
b73db10324
commit
b76e7ec569
|
|
@ -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>');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue