<p></p>
<blockquote>
<p dir="auto">. . . only latest Glibses support it.</p>
</blockquote>
<p dir="auto">The minimum required version is 2.65.2: <a href="https://github.com/frida/glib/blob/6fd4f36bac4d3f9c7ddc809bad6d04bd3365f39b/NEWS#L1002">https://github.com/frida/glib/blob/6fd4f36bac4d3f9c7ddc809bad6d04bd3365f39b/NEWS#L1002</a></p>
<blockquote>
<p dir="auto"><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/eht16/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eht16">@eht16</a> its your change, do you want to revert it or can you somehow test its availability in the runtime Glib?</p>
</blockquote>
<p dir="auto">I'm probably oversimplifying the issue, but it seems a tiny patch like this would do the job:</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-c1">diff --git a/src/utils.c b/src/utils.c</span>
index 6f7cb5b0..8283692a 100644
<span class="pl-md">--- a/src/utils.c</span>
<span class="pl-mi1">+++ b/src/utils.c</span>
<span class="pl-mdr">@@ -60,6 +60,11 @@</span>
 #include <glib/gstdio.h>
 #include <gio/gio.h>
 
<span class="pl-mi1"><span class="pl-mi1">+</span>#if GLIB_MAJOR_VERSION >= 0x2 && GLIB_MINOR_VERSION >= 0x41 && GLIB_MICRO_VERSION >= 0x2</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#define G_TIME_FMT_MICRO "%H:%M:%S.%f"</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#else</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#define G_TIME_FMT_MICRO "%H:%M:%S"</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#endif</span>
 
 /**
  *  Tries to open the given URI in a browser.
<span class="pl-mdr">@@ -1050,7 +1055,7 @@</span> gint utils_parse_color_to_bgr(const gchar *spec)
 gchar *utils_get_current_time_string(gboolean include_microseconds)
 {
        GDateTime *now = g_date_time_new_now_local();
<span class="pl-md"><span class="pl-md">-</span>  const gchar *format = include_microseconds ? "%H:%M:%S.%f" : "%H:%M:%S";</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>        const gchar *format = include_microseconds ? G_TIME_FMT_MICRO : "%H:%M:%S";</span>
        gchar *time_string = g_date_time_format(now, format);
        g_date_time_unref(now);
        return time_string;</pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/59004801/147641919-161b10ed-7531-4765-9815-cd8a961ccb49.png"><img src="https://user-images.githubusercontent.com/59004801/147641919-161b10ed-7531-4765-9815-cd8a961ccb49.png" alt="Screenshot_2021-12-29_03-19-34" style="max-width: 100%;"></a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/3071#issuecomment-1002462728">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4SNXGS36PFK5X4BSLUTLCZPANCNFSM5KZRW7CQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ2ZMAWG2E6ITYWIRETUTLCZPA5CNFSM5KZRW7C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHPAF4CA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/issues/3071/1002462728</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/3071#issuecomment-1002462728",
"url": "https://github.com/geany/geany/issues/3071#issuecomment-1002462728",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>