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

The first week of 2018 year bug #675

Closed
serfeo opened this issue Jan 6, 2018 · 1 comment
Closed

The first week of 2018 year bug #675

serfeo opened this issue Jan 6, 2018 · 1 comment

Comments

@serfeo
Copy link

serfeo commented Jan 6, 2018

Hi, it looks like the first week of this year for calendar week mode works incorrect.
I'm using JTAppleCalendar (7.1.5).
I'm using this parameters to initialize calendar:
let startWeek = Date().startOfWeek( .monday )
let startDate = startWeek.addingTimeInterval( -5 * 7 * 24 * 60 * 60 )
let endDate = startWeek.addingTimeInterval( 5 * 7 * 24 * 60 * 60 )
let parameters = ConfigurationParameters( startDate: startDate, endDate: endDate, numberOfRows: 1, firstDayOfWeek: .monday )
In the viewDidLoad function I'm scrolling calendar to the current date:
weekCalendarView.scrollToDate( selectedDate, animateScroll: false )
So after application started I get this week calendar view
simulator screen shot - iphone 8 plus - 2018-01-06 at 15 35 18
When I scroll this calendar view to the left a bit I get this week calendar view
simulator screen shot - iphone 8 plus - 2018-01-06 at 15 36 29
As you can see after the 7th of January there is the the 1st of January.
I'm not sure is it bug, so I would be grateful, if you check it.
Thanks.

@patchthecode
Copy link
Owner

not a bug.
here is the configuration for a 1 week calendar #581

Closing this issue.
If this does not fix it, then let me know. 👍

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

2 participants