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

TKCalendarMonthView calendarMonthView:didSelectDate returning wrong date #37

Closed
ncolon opened this issue Dec 10, 2010 · 1 comment
Closed
Labels

Comments

@ncolon
Copy link

ncolon commented Dec 10, 2010

I'm able to reproduce on DemoCalendarMonth.m in universaldemo. I've updated the demo with:

- (void) calendarMonthView:(TKCalendarMonthView*)monthView didSelectDate:(NSDate*)d{
    NSLog(@"today: %@", [NSDate date]);
    NSLog(@"selected: %@",d);
    [self.tableView reloadData];
}

When I tap today's tile, I get the following on my console:
2010-12-10 15:44:25.228 unviersaldemo[1081:307] Delegate Range: 2010-11-28 00:00:00 +0000 2011-01-01 00:00:00 +0000 34
2010-12-10 15:44:27.668 unviersaldemo[1081:307] today: 2010-12-10 19:44:27 +0000
2010-12-10 15:44:27.672 unviersaldemo[1081:307] selected: 2010-11-11 00:00:00 +0000

@devinross
Copy link
Owner

Yep, you're right. I committed a fix. Thanks.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants