fixed a date parsing bug

This commit is contained in:
SJ 2014-05-23 10:52:53 +02:00
parent f7e6c8ba9e
commit 7a773de8d1
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
#define VERSION "0.1.25-rc2"
#define BUILD 872
#define BUILD 873
#define HOSTID "mailarchiver"

View File

@ -203,7 +203,7 @@ unsigned long parse_date_header(char *datestr, struct __config *cfg){
if(len == 2){ if(atoi(s) >=90) tm.tm_year = atoi(s); else tm.tm_year = atoi(s) + 100; continue; }
if(len == 4){ tm.tm_year = atoi(s) - 1900; continue; }
if(len == 4 && atoi(s) > 1900){ tm.tm_year = atoi(s) - 1900; continue; }
if(len == 3){
if(strcmp(s, "EDT") == 0) offset = -14400;