Skip to content

Commit

Permalink
Fix msg_date_d wrongly parsing dates after 29 feb. Mon returned by mo…
Browse files Browse the repository at this point in the history
…nth_d() is in 0..11 range.
  • Loading branch information
andywolk committed Mar 1, 2024
1 parent aa96cbc commit 6a77449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsofia-sip-ua/msg/msg_date.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,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 > 1) + ydays)));
}
*ss = s;

Expand Down

0 comments on commit 6a77449

Please sign in to comment.