From 10ed86e61f527ee8b6da2767a65fff4589112e2b Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Mon, 9 Nov 2020 22:55:11 +0100 Subject: [PATCH] apply same for min in schema dates --- db/booking.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/booking.ts b/db/booking.ts index d10b004..91819a4 100644 --- a/db/booking.ts +++ b/db/booking.ts @@ -49,13 +49,13 @@ const BookingSchema = new mongoose.Schema( type: Date, required: true, get: dateFormatBackend, - min: new Date(), + min: nowInTz(), }, endDate: { type: Date, required: false, get: dateFormatBackend, - min: new Date(), + min: nowInTz(), }, days: { type: [String],