Commit 797563d5 authored by Simon Morlat's avatar Simon Morlat

fix bug again in the management of leap years for date header

parent 0bd85c9c
......@@ -293,7 +293,7 @@ issize_t msg_date_d(char const **ss, msg_time_t *date)
(min + 60 *
(hour + 24 *
(day - 1 + mon * 30 + first_day_offset[mon] +
(leap_year && mon > 2) + ydays)));
(leap_year && mon >= 2) + ydays)));
}
*ss = s;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment