Changeset 3647


Ignore:
Timestamp:
Oct 29, 2007, 11:48:59 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
  • branches/0.9x/gtk/util.c

    r3406 r3647  
    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.