Wed, 24 Oct 2018 17:07:39 -0500
log: Fix writing timestamp to old style log .idx file
This patch fixes writing the log timestamp to the old log format
.idx file. It was trying to write the pointer to a GDateTime format
instead of a Unix timestamp.
| libpurple/log.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/log.c Fri Oct 12 01:42:09 2018 +0000 +++ b/libpurple/log.c Wed Oct 24 17:07:39 2018 -0500 @@ -1689,7 +1689,7 @@ list = g_list_prepend(list, log); if (index != NULL) - fprintf(index, "%d\t%d\t%lu\n", data->offset, data->length, (unsigned long)log->time); + fprintf(index, "%d\t%d\t%lu\n", data->offset, data->length, (unsigned long)g_date_time_to_unix(log->time)); } }