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

Can not get correct end date select from GLCalendarDateRange #28

Open
leenguyen0709 opened this issue Jul 24, 2016 · 0 comments
Open

Can not get correct end date select from GLCalendarDateRange #28

leenguyen0709 opened this issue Jul 24, 2016 · 0 comments

Comments

@leenguyen0709
Copy link

Hello this is great library but I want to feedback can not get end date from select GLCalendarDateRange. Because it's have 2 different result.
Example: Click select 2016/7/30 but it's show 2016/7/29

  • (GLCalendarDateRange )calenderView:(GLCalendarView *)calendarView rangeToAddWithBeginDate:(NSDate *)beginDate
    {
    NSDate
    endDate = [GLDateUtils dateByAddingDays:0 toDate:beginDate];
    GLCalendarDateRange *range = [GLCalendarDateRange rangeWithBeginDate:beginDate endDate:endDate];
    range.backgroundColor = UIBackgroundColor;
    range.editable = YES;

    // range.endDate have different range
    NSLog(@"endDate: %@", range.endDate);
    NSLog(@" Add range: %@", range);
    return range;
    }

@leenguyen0709 leenguyen0709 changed the title Can not get Range.endDate Can not get corect end date select from GLCalendarDateRange Jul 24, 2016
@leenguyen0709 leenguyen0709 changed the title Can not get corect end date select from GLCalendarDateRange Can not get correct end date select from GLCalendarDateRange Jul 24, 2016
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