mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 20:20:00 +00:00
fixes bug 236365 "ftp date is off by one year" patch by lucasbz@negaverse.org r=darin sr=bzbarsky
This commit is contained in:
parent
e0abc0e1ff
commit
35a099dea2
@ -1146,8 +1146,8 @@ int ParseFTPList(const char *line, struct list_state *state,
|
||||
}
|
||||
|
||||
result->fe_time.tm_year = state->now_tm.tm_year;
|
||||
if ( (( state->now_tm.tm_month << 4) + state->now_tm.tm_mday) <
|
||||
((result->fe_time.tm_month << 4) + result->fe_time.tm_mday) )
|
||||
if ( (( state->now_tm.tm_month << 5) + state->now_tm.tm_mday) <
|
||||
((result->fe_time.tm_month << 5) + result->fe_time.tm_mday) )
|
||||
result->fe_time.tm_year--;
|
||||
|
||||
} /* time/year */
|
||||
|
Loading…
x
Reference in New Issue
Block a user