Changeset 3648


Ignore:
Timestamp:
Oct 29, 2007, 11:49:00 PM (15 years ago)
Author:
charles
Message:

ensure dates in the torrent inspector are readable by converting them from the system's locale to UTF-8. (bug found and patched by goyko, ticket #435)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/util.c

    r3406 r3648  
    115115rfc822date (guint64 epoch_msec)
    116116{
    117   const time_t secs = epoch_msec / 1000;
    118   const struct tm tm = *localtime (&secs);
    119   char buf[128];
    120   strftime (buf, sizeof(buf), "%a, %d %b %Y %T %Z", &tm);
    121   return g_strdup (buf);
     117    const time_t secs = epoch_msec / 1000;
     118    const struct tm tm = *localtime (&secs);
     119    char buf[128];
     120    strftime( buf, sizeof(buf), "%a, %d %b %Y %T %Z", &tm );
     121    return g_locale_to_utf8( buf, -1, NULL, NULL, NULL );
    122122}
    123123
Note: See TracChangeset for help on using the changeset viewer.