Skip to content

snap: Don't pass NULL to g_date_time_to_unix

As per API documentation, snapd_snap_get_install_date can return NULL. Passing NULL to g_date_time_to_unix results in a crash. When this happens we should pass GS_APP_INSTALL_DATE_UNKNOWN to gs_app_set_install_date.

Fixes: https://bugs.launchpad.net/bugs/1781996

Merge request reports