mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
fix to compile on non-cutting-edge glib
This commit is contained in:
parent
d9f54181a3
commit
783b4efdeb
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue