mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Fix bug in the method checking the validity of DateTime CPIM header.
This commit is contained in:
parent
8352ebcafd
commit
2f5ddf8f14
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ namespace Cpim {
|
|||
if (mTime.tm_mon < 1 || mTime.tm_mon > 12)
|
||||
return false;
|
||||
|
||||
if (mTime.tm_mday < 1 || (mTime.tm_mon == 2 && isLeapYear ? mTime.tm_mday > 29 : mTime.tm_mday > daysInMonth[mTime.tm_mon - 1]))
|
||||
if (mTime.tm_mday < 1 || (mTime.tm_mon == 2 && isLeapYear ? mTime.tm_mday > 29 : mTime.tm_mday > daysInMonth[mTime.tm_mon]))
|
||||
return false;
|
||||
|
||||
// Check time.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue