summaryrefslogtreecommitdiff
path: root/parsing.c
diff options
context:
space:
mode:
Diffstat (limited to 'parsing.c')
-rw-r--r--parsing.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/parsing.c b/parsing.c
index c2e9f23..c57a242 100644
--- a/parsing.c
+++ b/parsing.c
@@ -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;