From cf43f6e475280d2bf1791b9dc477e067b084013d Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 4 Mar 2025 12:20:30 -0600 Subject: [PATCH] Add a correctness check to the helper function I was writing a new test, and messed up the times vs. timezones of my start/end times. So, let's check them so it is easier to write new tests. Part-of: --- src/gui/event-editor/gcal-schedule-section.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/event-editor/gcal-schedule-section.c b/src/gui/event-editor/gcal-schedule-section.c index 10301cbe..4268198e 100644 --- a/src/gui/event-editor/gcal-schedule-section.c +++ b/src/gui/event-editor/gcal-schedule-section.c @@ -920,6 +920,8 @@ values_with_date_times(const char *start, const char *end) g_autoptr (GDateTime) end_date = g_date_time_new_from_iso8601 (end, NULL); g_assert (end_date != NULL); + g_assert (g_date_time_compare (start_date, end_date) == -1); + GcalScheduleValues *values = g_new0 (GcalScheduleValues, 1); *values = (GcalScheduleValues) {