libpurple/protocols/gg/utils.c

changeset 34374
41e525989ad7
parent 34361
ddcc82637afa
child 34384
c81441091162
equal deleted inserted replaced
34373:169db6aa5e08 34374:41e525989ad7
230 const gchar * ggp_date_strftime(const gchar *format, time_t date) 230 const gchar * ggp_date_strftime(const gchar *format, time_t date)
231 { 231 {
232 GDate g_date; 232 GDate g_date;
233 static gchar buff[30]; 233 static gchar buff[30];
234 234
235 g_date_set_time(&g_date, date); 235 g_date_set_time_t(&g_date, date);
236 if (0 == g_date_strftime(buff, sizeof(buff), format, &g_date)) 236 if (0 == g_date_strftime(buff, sizeof(buff), format, &g_date))
237 return NULL; 237 return NULL;
238 return buff; 238 return buff;
239 } 239 }
240 240

mercurial