Skip to content

wrong dates returned in single row calendar while scrolling week wise #1056

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

Closed
parveenkumar5 opened this issue May 27, 2019 · 4 comments
Closed
Assignees

Comments

@parveenkumar5
Copy link

Please validate, there is some issue with this calendar while using in single row. sometimes while scrolling the calendar it gives wrong dates in return. Video attached for your reference.
if you see in video at 0:08, dates given was 2 sept while it should have given date as 19 Aug.

video link : https://drive.google.com/open?id=1OsPZfDasaT3L7l8jWnDwYMEDBcJM4l_B

Please provide a solution.

Thanks,
Parveen

@patchthecode
Copy link
Owner

taking a look

@patchthecode
Copy link
Owner

i do not think you have your 1 week calendar configured correctly.

What you are seeing might be expected. (Indates/outdates)

The proper setup for a 1 week calendar is this --> #581

Let me know if this works

@patchthecode patchthecode self-assigned this May 27, 2019
@patchthecode
Copy link
Owner

I forgot to add that note to the Tutorial. I'll add this now.

@parveenkumar5
Copy link
Author

Thanks, worked for me using below code .

let parameter = ConfigurationParameters(startDate: startDate,
endDate: allowedTillDate,
numberOfRows: 1,
generateInDates: .forFirstMonthOnly,
generateOutDates: .off,
firstDayOfWeek: DaysOfWeek(rawValue: Calendar.current.component(.weekday, from: startDate))!)
return parameter

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