From 6f70fc763f51e8aac38b0168d73ac72d6a7f3bf7 Mon Sep 17 00:00:00 2001 From: tcely Date: Mon, 26 May 2025 07:06:15 -0400 Subject: [PATCH] Update views.py --- tubesync/sync/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tubesync/sync/views.py b/tubesync/sync/views.py index a85a3e68..87fb6bc6 100644 --- a/tubesync/sync/views.py +++ b/tubesync/sync/views.py @@ -349,6 +349,9 @@ class AddSourceView(EditSourceMixin, CreateView): def get_initial(self): initial = super().get_initial() + initial['target_schedule'] = timezone.now().replace( + second=0, microsecond=0, + ).isoformat(timespec='minutes') for k, v in self.prepopulated_data.items(): initial[k] = v return initial