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:
@@ -233,13 +233,20 @@ maybe_add_subscribers_to_timeline (GcalWindow *self)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
update_active_date (GcalWindow *window,
|
update_active_date (GcalWindow *window,
|
||||||
GDateTime *new_date)
|
GDateTime *date)
|
||||||
{
|
{
|
||||||
|
g_autoptr (GDateTime) new_date = NULL;
|
||||||
g_autofree gchar *new_date_string = NULL;
|
g_autofree gchar *new_date_string = NULL;
|
||||||
GcalWindowView i;
|
GcalWindowView i;
|
||||||
|
|
||||||
GCAL_ENTRY;
|
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");
|
new_date_string = g_date_time_format (new_date, "%x %X %z");
|
||||||
g_debug ("Updating active date to %s", new_date_string);
|
g_debug ("Updating active date to %s", new_date_string);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user