Search code examples
iphoneiosobjective-cnstimezonetapku

Weird timezone issue with Tapku library


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.


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