Changeset 3647
- Timestamp:
- Oct 29, 2007, 11:48:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9x/gtk/util.c
r3406 r3647 115 115 rfc822date (guint64 epoch_msec) 116 116 { 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 ); 122 122 } 123 123
Note: See TracChangeset
for help on using the changeset viewer.