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

获取农历日期崩溃- (BOOL)updateDateYear:(NSInteger)year Month:(NSInteger)month index:(NSInteger)index出错导致 #88

Open
erickyim opened this issue Oct 9, 2023 · 0 comments

Comments

@erickyim
Copy link

erickyim commented Oct 9, 2023

WX20231009-170226@2x

(lldb) p zone
(__NSTimeZone *) 0x000000028390e0d0 @"America/Toronto"
(lldb) p nowDate
(__NSTaggedDate *) 0x94e1ad4c4d89f829 2023-10-01 00:00:00 UTC
(lldb) p nextDate
(__NSTaggedDate *) 0x94e00b704d89f829 2023-09-01 00:00:00 UTC
(lldb) p DaysInNextMonth
(NSInteger) 31

2023-09-01 9 月份只有30天,DaysInNextMonth = [NSDate totaldaysInMonth:nextDate] 获取到的是31
dateStr = "2023-09-31"
myDate = nil, 最后导致[NSDate getChineseCalendarWithDate:myDate Year:tmpYear Month:tmpMonth Day:tmpDay];崩溃

screenshot-20231009-152621

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

1 participant