gcal-window: start selected day at 00:00:00(HH:MM:SS)

whenever a day is selected anywhere, let start it at 00:00:00

fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1256
This commit is contained in:
Abdullahi Usman
2024-07-31 22:11:25 +01:00
parent 773a55a53e
commit 094d1330f4
+8 -1
View File
@@ -233,13 +233,20 @@ maybe_add_subscribers_to_timeline (GcalWindow *self)
static void
update_active_date (GcalWindow *window,
GDateTime *new_date)
GDateTime *date)
{
g_autoptr (GDateTime) new_date = NULL;
g_autofree gchar *new_date_string = NULL;
GcalWindowView i;
GCAL_ENTRY;
new_date = g_date_time_new (g_date_time_get_timezone (date),
g_date_time_get_year (date),
g_date_time_get_month (date),
g_date_time_get_day_of_month (date),
0, 0, 0);
new_date_string = g_date_time_format (new_date, "%x %X %z");
g_debug ("Updating active date to %s", new_date_string);