+ log_printf("Failed to get date from GitHub");
+ }
+ else
+ {
+ while (fgets(buffer, max_buffer_size, pipe) != nullptr)
+ {
+ strcat(result, buffer);
+ }
+ pclose(pipe);
+
+ /* GitHub date looks like: "published_at": "2024-04-17T08:50:08Z" */
+ start_date = g_strstr_len(result, -1, "published");
+ start_date[26] = '\0';
+
+ github_split = g_strsplit_set(start_date, "\"-", -1);
+
+ sscanf(github_split[2], "%4u", &year);
+ sscanf(github_split[3], "%2u", &month);
+ sscanf(github_split[4], "%2u", &day);
+
+ github_version_date.tm_year = year - 1900;
+ github_version_date.tm_mon = month - 1;
+ github_version_date.tm_mday = day;
+ github_version_date.tm_hour = 0;
+ github_version_date.tm_min = 0;
+ github_version_date.tm_sec = 0;
+ github_version_date.tm_isdst = 0;
+
+ if (mktime(&github_version_date) > mktime(¤t_version_date))
+ {
+ show_notification_message(appimage_data);
+ }
+
+ g_strfreev(github_split);