application: Fix tm -> GDateTime month conversion

The month argument for g_date_time_new() is 1-based,
while the tm struct is 0-based.

Follow-up to:
a0aa36b6d2

ref:
https://pubs.opengroup.org/onlinepubs/7908799/xsh/time.h.html
This commit is contained in:
Michael Webster
2021-12-15 14:22:00 +00:00
committed by Georges Basile Stavracas Neto
parent efa16a8931
commit 02cd9b053e
+1 -1
View File
@@ -416,7 +416,7 @@ gcal_application_command_line (GApplication *app,
initial_date = g_date_time_new (gcal_context_get_timezone (self->context),
result.tm_year + 1900,
result.tm_mon,
result.tm_mon + 1,
result.tm_mday,
result.tm_hour,
result.tm_min,