Comments (3)
I am getting same issue in production app, below is stack trace
from fscalendar.
@WenchaoD can you please check this issue
from fscalendar.
FSCalendar has a working range of dates minimumDate
- maximumDate
, by defaults it's 1970-01-01
and 2099-12-31
I noticed strange behavior of minimumDate
calculation for some time zones (e.g. America/Mazatlan (GMT-7))
NSDate *newMin = [self.dataSourceProxy minimumDateForCalendar:self]?:[self.formatter dateFromString:@"1970-01-01"];
newMin = [self.gregorian dateBySettingHour:0 minute:0 second:0 ofDate:newMin options:0];
here newMin
will be 1970-01-01 01:00:00
however for any other date an hour component will be set to 0 hours
(e.g. 1970-01-02 00:00:00
)
Because of this, calculations like - (NSIndexPath *)indexPathForDate:(NSDate *)date scope:(FSCalendarScope)scope
are broken and leads to crash on iOS 17
There is a way to change minimumDate
by implementing dataSource
method to avoid such behavior
/**
* Asks the dataSource the minimum date to display.
*/
- (NSDate *)minimumDateForCalendar:(FSCalendar *)calendar;
from fscalendar.
Related Issues (20)
- Voice Over Enabled - Prevent announcing previous and next month names HOT 1
- iOS 17 doesn't renders the months correctly HOT 5
- Header background color issue
- How to add contentInset to scrollview / collectionview / calendar?
- Privacy Manifests HOT 12
- Unable to run the app - Command phase script execution failed due to non zero exist code.
- App Crash when Timezone is America/Mazatlan HOT 5
- I want to yearly, weekly and daily calendar view HOT 1
- The last month's titlePlaceholderColor color is wrong
- 当进入下一页中断后,currentPage 设置不正确。when go to next page interrupt,currentPage not return right
- ContentInset to ScrollView / CollectionView / Calendar?
- events dot sometime show the hide days
- Please add PrivacyInfo.xcprivacy file.
- Event numbers show on hide dates
- Voice Over Navigation Issues
- Upload Privacy Policy HOT 1
- Some dates are not displayed and show HOT 2
- Month name hiding
- What does the warning mean next to the library name??
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fscalendar.