{"action":"created","issue":{"url":"https://api.github.com/repos/ashikahmad/PrayerTimes-Swift/issues/1","labels_url":"https://api.github.com/repos/ashikahmad/PrayerTimes-Swift/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ashikahmad/PrayerTimes-Swift/issues/1/comments","events_url":"https://api.github.com/repos/ashikahmad/PrayerTimes-Swift/issues/1/events","html_url":"https://github.com/ashikahmad/PrayerTimes-Swift/issues/1","id":90624139,"number":1,"title":"Adjust Isha for Um-Alqura in Ramadan","user":{"login":"laplace","id":342633,"avatar_url":"https://avatars.githubusercontent.com/u/342633?v=3","gravatar_id":"","url":"https://api.github.com/users/laplace","html_url":"https://github.com/laplace","followers_url":"https://api.github.com/users/laplace/followers","following_url":"https://api.github.com/users/laplace/following{/other_user}","gists_url":"https://api.github.com/users/laplace/gists{/gist_id}","starred_url":"https://api.github.com/users/laplace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laplace/subscriptions","organizations_url":"https://api.github.com/users/laplace/orgs","repos_url":"https://api.github.com/users/laplace/repos","events_url":"https://api.github.com/users/laplace/events{/privacy}","received_events_url":"https://api.github.com/users/laplace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T09:32:47Z","updated_at":"2015-06-28T20:23:47Z","closed_at":null,"body":"In Saudi Arabia, Isha in Ramadan is adjusted to be Maghrib + 2 Hours, I suggest modifying the following part in adjustTimes \r\n\r\n \r\n        // Adjust Isha\r\n        let cal = NSCalendar(calendarIdentifier: NSCalendarIdentifierIslamicUmmAlQura)\r\n        let month = cal?.component(.CalendarUnitMonth, fromDate: NSDate())\r\n        //If Makkah and Ramadan, the Isha is Maghrib+2.0\r\n        if (self.calculationMethod == .Makkah && month == 9)\r\n        {\r\n            if (!ttimes[TimeNames.Maghrib]!.isNaN){\r\n                ttimes[TimeNames.Isha] = ttimes[TimeNames.Maghrib]! + 2.0\r\n            }\r\n        }\r\n        else {\r\n            if params[3] == 1 { // Isha\r\n                dTime2 = ttimes[TimeNames.Maghrib]! + Double(params[4] / 60.0)\r\n                ttimes[TimeNames.Isha] = dTime2\r\n            }\r\n        }\r\n"},"comment":{"url":"https://api.github.com/repos/ashikahmad/PrayerTimes-Swift/issues/comments/116326231","html_url":"https://github.com/ashikahmad/PrayerTimes-Swift/issues/1#issuecomment-116326231","issue_url":"https://api.github.com/repos/ashikahmad/PrayerTimes-Swift/issues/1","id":116326231,"user":{"login":"ashikahmad","id":681032,"avatar_url":"https://avatars.githubusercontent.com/u/681032?v=3","gravatar_id":"","url":"https://api.github.com/users/ashikahmad","html_url":"https://github.com/ashikahmad","followers_url":"https://api.github.com/users/ashikahmad/followers","following_url":"https://api.github.com/users/ashikahmad/following{/other_user}","gists_url":"https://api.github.com/users/ashikahmad/gists{/gist_id}","starred_url":"https://api.github.com/users/ashikahmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashikahmad/subscriptions","organizations_url":"https://api.github.com/users/ashikahmad/orgs","repos_url":"https://api.github.com/users/ashikahmad/repos","events_url":"https://api.github.com/users/ashikahmad/events{/privacy}","received_events_url":"https://api.github.com/users/ashikahmad/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T20:23:47Z","updated_at":"2015-06-28T20:23:47Z","body":"Thanks, for your awesome suggestion. I will love to fit this sort of things configurable rather than hard-coding in core. So that people can simply set or toggle some properties to have or ignore this type of special cases. In-Sha-Allah, I'll give some effort on this when I get some free time.\r\nThanks again, for your concern."}}