Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Minor fix - auction time

KrzysztofPajak49ce281c9c1a
diff --git a/src/Web/Grand.Web/Views/Product/_AuctionInfo.cshtml b/src/Web/Grand.Web/Views/Product/_AuctionInfo.cshtml
index f4db69a7c..3b0de01b9 100644
--- a/src/Web/Grand.Web/Views/Product/_AuctionInfo.cshtml
+++ b/src/Web/Grand.Web/Views/Product/_AuctionInfo.cshtml
@@ -6,7 +6,7 @@
<div class="countdown-box alert alert-info">
@if (Model.EndTime > DateTime.UtcNow)
{
- <countdown :end-time="@Model.EndTime.Value.ToUniversalTime().Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds">
+ <countdown :end-time="@Model.EndTime.Value.Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds">
<template v-slot:process="{ timeObj }">
<span class="col-form-label">@Loc["AddToCart.Timeleft"]:</span>
<span>{{ `${timeObj.d}` }} : </span>
diff --git a/src/Web/Grand.Web/Views/Shared/_CatalogProductListView.cshtml b/src/Web/Grand.Web/Views/Shared/_CatalogProductListView.cshtml
index cb89e5f28..be33395ef 100644
--- a/src/Web/Grand.Web/Views/Shared/_CatalogProductListView.cshtml
+++ b/src/Web/Grand.Web/Views/Shared/_CatalogProductListView.cshtml
@@ -83,7 +83,7 @@
<div class="countdown-box alert alert-info d-table mb-1">
@if (Model.EndTime > DateTime.UtcNow)
{
- <countdown :end-time="@Model.EndTime.Value.ToUniversalTime().Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds">
+ <countdown :end-time="@Model.EndTime.Value.Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds">
<template v-slot:process="{ timeObj }">
<span class="col-form-label">@Loc["AddToCart.Timeleft"]:</span>
<span>{{ `${timeObj.d}` }} : </span>
diff --git a/src/Web/Grand.Web/Views/Shared/_CatalogProductView.cshtml b/src/Web/Grand.Web/Views/Shared/_CatalogProductView.cshtml
index 0481b6799..80d88548d 100644
--- a/src/Web/Grand.Web/Views/Shared/_CatalogProductView.cshtml
+++ b/src/Web/Grand.Web/Views/Shared/_CatalogProductView.cshtml
@@ -82,7 +82,7 @@
<div class="countdown-box alert alert-info w-100 mb-1">
@if (Model.EndTime > DateTime.UtcNow)
{
- <countdown :end-time="@Model.EndTime.Value.ToUniversalTime().Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds">
+ <countdown :end-time="@Model.EndTime.Value.Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds">
<template v-slot:process="{ timeObj }">
<span class="col-form-label">@Loc["AddToCart.Timeleft"]:</span>
<span>{{ `${timeObj.d}` }} : </span>
diff --git a/src/Web/Grand.Web/Views/Shared/_PopupAddToCart.cshtml b/src/Web/Grand.Web/Views/Shared/_PopupAddToCart.cshtml
index b241593f4..53028ab9f 100644
--- a/src/Web/Grand.Web/Views/Shared/_PopupAddToCart.cshtml
+++ b/src/Web/Grand.Web/Views/Shared/_PopupAddToCart.cshtml
@@ -74,7 +74,7 @@
<div>
@if (Model.EndTime > DateTime.UtcNow)
{
- <countdown :end-time="@Model.EndTime.Value.ToUniversalTime().Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds">
+ <countdown :end-time="@Model.EndTime.Value.Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds">
<template v-slot:process="{ timeObj }">
<span class="col-form-label">@Loc["AddToCart.Timeleft"]:</span>
<span>{{ `${timeObj.d}` }} </span>