{"action":"created","issue":{"url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/363","repository_url":"https://api.github.com/repos/alamkanak/Android-Week-View","labels_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/363/comments","events_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/363/events","html_url":"https://github.com/alamkanak/Android-Week-View/issues/363","id":177135809,"number":363,"title":"goToHour not working","user":{"login":"tommygoh","id":22214272,"avatar_url":"https://avatars.githubusercontent.com/u/22214272?v=3","gravatar_id":"","url":"https://api.github.com/users/tommygoh","html_url":"https://github.com/tommygoh","followers_url":"https://api.github.com/users/tommygoh/followers","following_url":"https://api.github.com/users/tommygoh/following{/other_user}","gists_url":"https://api.github.com/users/tommygoh/gists{/gist_id}","starred_url":"https://api.github.com/users/tommygoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommygoh/subscriptions","organizations_url":"https://api.github.com/users/tommygoh/orgs","repos_url":"https://api.github.com/users/tommygoh/repos","events_url":"https://api.github.com/users/tommygoh/events{/privacy}","received_events_url":"https://api.github.com/users/tommygoh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-15T09:58:16Z","updated_at":"2016-09-21T02:50:40Z","closed_at":null,"body":"Can somebody help me guiding this issue ?\r\nWhen i tried to goToHour it didn't show any changes. it just started from 12 AM.\r\nAm I doing something wrong ? Here is the code :\r\n```java\r\nList<Events> eventList = responseEvent.getData().getEvents();\r\nevents = new ArrayList<>();\r\nfor (int i = 0; i < eventList.size(); i++){\r\nCalendar startTime = Calendar.getInstance();\r\nString[] localStartTime = eventList.get(i).getLocalStartTime().split(\"T\");\r\nString[] getStartTime = localStartTime[1].split(\":\");\r\nString[] date = localStartTime[0].split(\"-\");\r\nstartTime.set(Calendar.HOUR_OF_DAY, Integer.parseInt(getStartTime[0]));\r\nstartTime.set(Calendar.MINUTE, Integer.parseInt(getStartTime[1]));\r\nstartTime.set(Calendar.DATE, Integer.parseInt(date[2]));\r\nstartTime.set(Calendar.MONTH, Integer.parseInt(date[1]) - 1);\r\nstartTime.set(Calendar.YEAR, Integer.parseInt(date[0]));\r\nCalendar endTime = (Calendar) startTime.clone();\r\nendTime.add(Calendar.HOUR_OF_DAY, 1);\r\nWeekViewEvent event = new WeekViewEvent(i + 1, eventList.get(i).getType(), null, startTime, endTime);\r\nevent.setColor(ContextCompat.getColor(DailyEventActivity.this, R.color.colorDarkGray));\r\nevents.add(event);\r\n                    if (i == 0){\r\n                        selectedDate = startTime;\r\n                    }\r\n                }\r\n//                if (eventList.size() < 1) {\r\n//                    Calendar calendar = Calendar.getInstance();\r\n//                    SimpleDateFormat df =  UserDefaults.getDateFormat();\r\n//                    try {\r\n//                        calendar.setTime(df.parse(getDate));\r\n//                    } catch (ParseException e) {\r\n//                        e.printStackTrace();\r\n//                    }\r\n//                    weekView.goToDate(calendar);\r\n//                }\r\n//                else{\r\n//                    weekView.goToDate(selectedDate);\r\n//                }\r\n                int height = weekView.getMeasuredHeight();\r\n                int textSize = weekView.getTextSize();\r\n                int padding = weekView.getHeaderRowPadding();\r\n                height = height - textSize - (2 * padding);\r\n                weekView.setHourHeight(height / 24);\r\n                weekView.goToHour(2);\r\n                weekView.notifyDatasetChanged();\r\n```"},"comment":{"url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/comments/248496656","html_url":"https://github.com/alamkanak/Android-Week-View/issues/363#issuecomment-248496656","issue_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/363","id":248496656,"user":{"login":"tommygoh","id":22214272,"avatar_url":"https://avatars.githubusercontent.com/u/22214272?v=3","gravatar_id":"","url":"https://api.github.com/users/tommygoh","html_url":"https://github.com/tommygoh","followers_url":"https://api.github.com/users/tommygoh/followers","following_url":"https://api.github.com/users/tommygoh/following{/other_user}","gists_url":"https://api.github.com/users/tommygoh/gists{/gist_id}","starred_url":"https://api.github.com/users/tommygoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommygoh/subscriptions","organizations_url":"https://api.github.com/users/tommygoh/orgs","repos_url":"https://api.github.com/users/tommygoh/repos","events_url":"https://api.github.com/users/tommygoh/events{/privacy}","received_events_url":"https://api.github.com/users/tommygoh/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T02:50:40Z","updated_at":"2016-09-21T02:50:40Z","body":"it does nothing also. i'm okay if it doesn't show all hours. just want to show the first hour of what i set @caske33 "}}
{"actor":{"display_login":"tommygoh"}}