| 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 |