From 7042c27f18313872ac6818941cdbb3a855f1f9e6 Mon Sep 17 00:00:00 2001
From: psy <psy@darmstadt.ccc.de>
Date: Tue, 16 Nov 2021 16:26:14 +0100
Subject: [PATCH] remove offset for min value

---
 uffd/invite/templates/invite/new.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uffd/invite/templates/invite/new.html b/uffd/invite/templates/invite/new.html
index b36ebd0c..b8cca277 100644
--- a/uffd/invite/templates/invite/new.html
+++ b/uffd/invite/templates/invite/new.html
@@ -13,7 +13,7 @@
 		<label for="valid-until">{{_('Valid Until')}}</label>
 		<input class="form-control" type="datetime-local" id="valid-until" name="valid-until"
 				value="{{ (datetime.now() + timedelta(hours=36)).replace(hour=23, minute=59, second=59, microsecond=0).isoformat(timespec='minutes') }}"
-				min="{{ (datetime.now() + timedelta(minutes=10)).isoformat(timespec='minutes') }}"
+				min="{{ datetime.now().isoformat(timespec='minutes') }}"
 				max="{{ (datetime.now() + timedelta(days=config['INVITE_MAX_VALID_DAYS'])).isoformat(timespec='minutes') }}"
 		>
 		<small class="text-muted">{{_('Must be within the next %(max_valid_days)d days', max_valid_days=config['INVITE_MAX_VALID_DAYS'])}}</small>
-- 
GitLab