diff options
Diffstat (limited to 'parsing.c')
-rw-r--r-- | parsing.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -370,15 +370,18 @@ void process() { } else printf("\tParsing %s\n", file->path); - long pos = pg_channel_file_get(channel_id, file); + long pos; + time_t time; + pg_channel_file_get(channel_id, file, &pos, &time); fseek(f, pos, SEEK_SET); + localtime_r(&time, &now_global); last_user = NULL; in_monolog = monolog_len = 0; process_file(f, channel, rs); - pg_channel_file_set(channel_id, file, ftell(f)); + pg_channel_file_set(channel_id, file, ftell(f), mktime(&now_global)); fclose(f); file = file->next; |