objc-TimesSquare
objc-TimesSquare copied to clipboard
Wrong date returned for DidSelectDate
Any date between April and October will return the date for the previous day.
Example: Selecting 1st April will return 31st March
I also get this issue. Any solution?
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.
Same here... Objective-C, running in Simulator... but it's consistently returning the previous day's date at 22:00:00...
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] ); }