Question

I have a strange issue with Tapku Calendar control library.

It was showing me wrong date information, so I replaced all timezones from

[NSTimeZone timeZoneForSecondsFromGMT:0]

to

[NSTimeZone systemTimeZone]];

All works well till here.

However, when I changed timezone in the file called

NSDate + CalendarGrid.m,

at that point my calendar selection of dates was disabled.

No touches are being detected on calendar.

I have done all this step by step and found this issue in NSDate+CalendarGrid.m file.

I have already spent lot of hours finding this.

Please help in how to fix this weird issue.

Thanks in advance.

Was it helpful?

Solution

I don't know about the touches Disabled Problem, But for fixing the wrong date information problem, what you can do is change the following line in viewDidLoad

[self.monthView selectDate:[NSDate date] month];

to

[self.monthView selectDate:[NSDate date]];

Hope it helps

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top