Comments (13)
Thanks for your reporting. Fixed that in master
repo. It seems working.
from fscalendar.
The currentMonth
issue is fixed, but I don't quite understand the default month is 1 month earlier
. Does that mean set the currentMonth to February in viewDidLoad?
from fscalendar.
The crash issue has been fixed.
But the default calendar still not showing the current month.
For example, run your demo app, it shows default month to be February, it
should show the current month, which is March with the current date
highlighted. Also if you tap on the setting icon of the demo app and go to
selected the date to March 18th, and it will go to Feb 18th. (this is bug).
Also in the demo:
_calendar.currentMonth = [NSDate fs_dateWithYear:2015 month:1 day:1];
Seem to work and show the Jan, but if you change it to
_calendar.currentMonth = [NSDate fs_dateWithYear:2015 month:3 day:18];
It shows the wrong month.
This library is the best open source calendar i seen so far. Great job and
thanks for the fast turning on fixing the issues. Let me know if you can
not reproduce the issue above or need further explanation.
Regards
-Tom
On Wed, Mar 18, 2015 at 9:58 PM, Wenchao Ding [email protected]
wrote:
The currentMonth issue is fixed, but I don't quite understand the default
month is 1 month earlier. Does that mean set the currentMonth to February
in viewDidLoad?—
Reply to this email directly or view it on GitHub
#14 (comment)
.
from fscalendar.
For example, run your demo app, it shows default month to be February,
But when I start the simulator, it correctly shows the March
And this is 8.2 simulator, in English:
from fscalendar.
Strange, i see Feb when run the demo unchanged. see screen below:
from fscalendar.
Indeed, maybe because of the locale? What's your country?
And what's your device model?
from fscalendar.
I am using US region but also changed to others and same result. tested on iPhone 5 and iPhone 6 Simulators and same result. Installed on device and also have the same result which show Feb instead of March this month. Only thing i can think of it might be due to daylight saving time related? I recorded a video showing this strange behavior but can't attached to the github. let me know if you want me to send to you.
from fscalendar.
Of course, you can send me via my email address [email protected], better with more details, for example : the simulators system version, the Mac system version, xcode version .etc
from fscalendar.
Hi
Looks like the issue is due to time Zone.
Was able to reproduce it on device, Change time zone,
General/Date-time/Time Zone.
It could be daylight saving related.
On Wednesday, March 18, 2015, Wenchao Ding [email protected] wrote:
Of course, you can send me via my email address [email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');, better with more
details, for example : the simulators system version, the Mac system
version, xcode version .etc—
Reply to this email directly or view it on GitHub
#14 (comment)
.
from fscalendar.
That's it. I change the Time Zone to Los Angeles, the problem appears.
from fscalendar.
Problem solved. It's not about the daylight saving time. It's about the UTC time offset. In Los Angeles(UTC-08:00) , the [NSDate dateWithTimeIntervalSince1970:0] returns 1969/12/31 16:00, while in Beijing(UTC+08:00) it returns 1970/01/01 08:00. I shouldn't use that date for the minimumDate at all. Now I've tested it and it works well in both time zoon of L.A. and Beijing.
from fscalendar.
Nice! It is fixed.
from fscalendar.
I had this problem and I solved in this way:
fsCalendar.locale = NSLocale(localeIdentifier: "fa_IR") as Locale
fsCalendar.select(Date())
fsCalendar.identifier = NSCalendar.Identifier.persian.rawValue
from fscalendar.
Related Issues (20)
- Add week numbers to month view
- How to add an image above the date?
- Thread 1: "-[_NSCopyOnWriteCalendarWrapper fs_firstDayOfMonth:]: unrecognized selector sent to instance 0x281cd4200"
- Question about a custom design
- Title is added on unelected date on scroll month . HOT 1
- how make select two dates only one to start date and anther to end date ?
- FSCalendar not working in updated Xcode (14.3) HOT 2
- Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 447]. Layer: <CALayer:0x600000444080; position = CGPoint (0 0); bounds = CGRect (0 0; 258.5 48); delegate = <_UIEditMenuListView: 0x7ff095714380; frame = (-129.25 -24; 258.5 48); alpha = 0; layer = <CALayer: 0x600000444080>>; sublayers = (<CALayer: 0x600000444240>); opaque = YES; opacity = 0; shadowOpacity = 0.25; shadowOffset = CGSize (0 3); shadowRadius = 12>'
- Auto Rotation layout issues HOT 6
- 设置为周模式时候,为什么日期的高度很小,设置成200-300正常
- date getting overlap each other, while scorlling horizontally
- Fix date range multiselect HOT 1
- 视觉障碍人士开启辅助功能的旁白(voice over),日历的滑动切换功能就失效了
- 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.
- Attempted to modify the selection of an item in an out-of-bounds section (647) when there are only 647 sections. HOT 3
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.