From 1902d527d5362308eaa31db9e864b36c54548671 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Tue, 3 May 2016 19:47:50 +0300 Subject: Parse date and time from on APD import This will parse the date and time information on CSV import if the file name matches the one used by APD log viewer (date and time are available in the file name). Hard coding the year to 20?? is a bit unfortunate, but as there is only 2 digits in the year, we have to invent something. And it would be quite optimistic to assume this will bite us back any time soon :D Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- core/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/file.c b/core/file.c index 85bc949fe..b9da21fb2 100644 --- a/core/file.c +++ b/core/file.c @@ -974,7 +974,7 @@ int parse_csv_file(const char *filename, char **params, int pnr, const char *csv return -1; } mem.size = ptr - (char*)mem.buffer; - } else { + } else if (strcmp(params[0], "date")) { time(&now); timep = localtime(&now); -- cgit v1.2.3-70-g09d2