fix to compile on non-cutting-edge glib

This commit is contained in:
Eric House 2020-08-31 18:33:20 -07:00
parent d9f54181a3
commit 783b4efdeb

View file

@ -609,7 +609,7 @@ void
formatSeconds( int unixSeconds, gchar* buf, int bufLen ) formatSeconds( int unixSeconds, gchar* buf, int bufLen )
{ {
GDateTime* timeval = g_date_time_new_from_unix_local( unixSeconds ); GDateTime* timeval = g_date_time_new_from_unix_local( unixSeconds );
gchar* str = g_date_time_format_iso8601 ( timeval ); gchar* str = g_date_time_format( timeval, "%c" );
int len = strlen( str ); int len = strlen( str );
if ( len < bufLen ) { if ( len < bufLen ) {
XP_MEMCPY( buf, str, len + 1 ); XP_MEMCPY( buf, str, len + 1 );