From f869be3151842b4a5fcc86141e662e0b69f9f65a Mon Sep 17 00:00:00 2001 From: Tamir Gershberg Date: Sun, 17 Mar 2024 02:31:14 +0200 Subject: [PATCH] fix --- client/src/pages/marketplace/Marketplace.tsx | 2 +- src/products/products.controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/marketplace/Marketplace.tsx b/client/src/pages/marketplace/Marketplace.tsx index ceb60828..c1f6d2d0 100644 --- a/client/src/pages/marketplace/Marketplace.tsx +++ b/client/src/pages/marketplace/Marketplace.tsx @@ -54,7 +54,7 @@ export const Marketplace: FC = (props: Props) => { ? getLatestProducts().then((data) => setProducts(data)) : getProducts( new Date(new Date().setFullYear(new Date().getFullYear() - 1)), - new Date() + new Date(new Date().setDate(new Date().getDate() + 1)) ).then((data) => setProducts(data)); }, []); diff --git a/src/products/products.controller.ts b/src/products/products.controller.ts index be7f1021..1a369e0d 100644 --- a/src/products/products.controller.ts +++ b/src/products/products.controller.ts @@ -74,7 +74,7 @@ export class ProductsController { ): Promise { this.logger.debug('Get all products.'); let df = new Date(new Date().setFullYear(new Date().getFullYear() - 1)); - let dt = new Date(); + let dt = new Date(new Date().setDate(new Date().getDate() + 1)); if (dateFrom) { df = this.parseDate(dateFrom); }