From b76e7ec569ec28c2da19d19e23e8f36cd3c1004c Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 29 Nov 2024 14:26:50 +0100 Subject: [PATCH] date fixed, sortIndex dsiplayed --- .../Views/PublicInfo.cshtml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Nop.Plugin.Misc.AuctionPlugin/Views/PublicInfo.cshtml b/Nop.Plugin.Misc.AuctionPlugin/Views/PublicInfo.cshtml index 02ffe84..35303bb 100644 --- a/Nop.Plugin.Misc.AuctionPlugin/Views/PublicInfo.cshtml +++ b/Nop.Plugin.Misc.AuctionPlugin/Views/PublicInfo.cshtml @@ -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('

' + + '" class="bg-success p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;">

' + 'LIVE RIGTH NOW' + '

' + productToAuctionDto.sortIndex + @@ -69,10 +69,10 @@ console.log("isActive: " + isActive); productItem.prepend('

' + - resultDate + + '" class="bg-primary p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;">

' + + resultDate.toLocaleString() + '

' + - productToAuctionDto.sortIndex + + "No.: " + productToAuctionDto.sortIndex + '
'); }