Commit 2aad0260 authored by Milan Crha's avatar Milan Crha

Relax runtime check in e_cal_util_get_system_timezone()

This runtime warning had been shown when running Evolution in Flatpak
with GNOME 3.30 runtime. It had been due to libical not finding
tzdata file in the expected directory. Let's relax the runtime
warning, because it can happen the time zone detection fails, even
in a corner case.
parent ec2d98f0
......@@ -1583,7 +1583,10 @@ e_cal_util_get_system_timezone (void)
icaltimezone *zone;
location = e_cal_system_timezone_get_location ();
g_return_val_if_fail (location != NULL, NULL);
/* Can be NULL when failed to detect system time zone */
if (!location)
return NULL;
zone = icaltimezone_get_builtin_timezone (location);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment