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

Wrong date returned for DidSelectDate #31

Open
MasonLive opened this issue Jul 25, 2013 · 4 comments
Open

Wrong date returned for DidSelectDate #31

MasonLive opened this issue Jul 25, 2013 · 4 comments

Comments

@MasonLive
Copy link

Any date between April and October will return the date for the previous day.

Example: Selecting 1st April will return 31st March

@osklar0328
Copy link

I also get this issue. Any solution?

@mohibsheth
Copy link

Ok, now I am facing this issue as well. I am using this in Xamarin but from what I could investigate, the problem seems to be DST. The date being returned is -2 hours. Can somebody help in getting this fixed.

@robertturrall
Copy link

Same here... Objective-C, running in Simulator... but it's consistently returning the previous day's date at 22:00:00...

@robertturrall
Copy link

This works, displays the correct date (code in delegate):

  • (void)calendarView:(TSQCalendarView *)calendarView didSelectDate:(NSDate *)date {

    self.dateFormatter = [[NSDateFormatter alloc] init];
    [self.dateFormatter setLocale:[NSLocale currentLocale]];
    [self.dateFormatter setDateFormat:@"EEEE d MMM yyyy"];

    NSLog(@" --- selected date %@", [self.dateFormatter stringFromDate:date] );
    }

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

4 participants