Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.7.3,时间比较在跨年时有误,引起断言终止程序。 #213

Closed
CarrySniper opened this issue Dec 28, 2020 · 1 comment
Closed

Comments

@CarrySniper
Copy link

CarrySniper commented Dec 28, 2020

当设置时间为如下跨年时间时,触发:

NSAssert(!minMoreThanMax, @"最小日期不能大于最大日期!");
_minDate	__NSTaggedDate *	2020-12-28 08:35:41 UTC	0xb763b48b2786aa8b
_maxDate	__NSTaggedDate *	2021-01-04 08:35:41 UTC	0xb763a9e66786ab9f

dateFormat没带上年份的时候会出现这个问题

- (NSComparisonResult)br_compareDate:(NSDate *)date targetDate:(NSDate *)targetDate dateFormat:(NSString *)dateFormat;
@abcdezg
Copy link

abcdezg commented May 24, 2021

修复记录看#232

@agiapp agiapp closed this as completed Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants