mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:50:12 +01:00
fixed a date parsing bug
This commit is contained in:
parent
f7e6c8ba9e
commit
7a773de8d1
@ -14,7 +14,7 @@
|
||||
|
||||
#define VERSION "0.1.25-rc2"
|
||||
|
||||
#define BUILD 872
|
||||
#define BUILD 873
|
||||
|
||||
#define HOSTID "mailarchiver"
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user