<p></p>
<p dir="auto">Oops, I didn't notice because I used recent enough GLib versions on Windows and Linux :(.</p>
<blockquote>
<p dir="auto"><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/rdipardo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rdipardo">@rdipardo</a> thanks for working on this.</p>
</blockquote>
<p dir="auto">+1</p>
<blockquote>
<p dir="auto">if compiled against a new enough version and the runtime version is same or newer (the glib_check_version)<br>
then use microseconds<br>
else use seconds</p>
</blockquote>
<p dir="auto">I'm missing something probably but my attempt is way simpler by just checking the GLib version at runtime to decide whether to use <code>%f</code> or not. See below.</p>
<blockquote>
<p dir="auto">Whilst the microseconds can be useful, we got by without until now, so IMHO its not critical to provide it, but it is critical to always get a time. (<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> agree?)</p>
</blockquote>
<p dir="auto">I fully agree that the log date without microseconds is more important than no log date.</p>
<blockquote>
<p dir="auto">This case gets complicated because we want to provide a workaround, not fail, and the incompatibility is just the contents of a string not a missing function so its really hidden.</p>
</blockquote>
<p dir="auto">I don't see a problem in using <code>glib_check_version()</code>, especially in this case where it is as easy as to just modify the string. We don't need compile time checks as there is no API involved.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1091792649" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/3076" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/3076/hovercard" href="https://github.com/geany/geany/pull/3076">#3076</a> tries to fix it by using <code>glib_check_version()</code> and remove microseconds if GLib version is older than 2.66.0 (which is the relevant stable release after 2.65.2).</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-1003541453">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYMSTA65TC244ETOCTUT3NQ7ANCNFSM5KZRW7CQ">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/AAIOWJ2FLW2H6JS6DSRJ7IDUT3NQ7A5CNFSM5KZRW7C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHPINHTI.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/1003541453</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-1003541453",
"url": "https://github.com/geany/geany/issues/3071#issuecomment-1003541453",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>