{"action":"created","issue":{"url":"https://api.github.com/repos/najlepsiwebdesigner/foundation-datepicker/issues/102","labels_url":"https://api.github.com/repos/najlepsiwebdesigner/foundation-datepicker/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/najlepsiwebdesigner/foundation-datepicker/issues/102/comments","events_url":"https://api.github.com/repos/najlepsiwebdesigner/foundation-datepicker/issues/102/events","html_url":"https://github.com/najlepsiwebdesigner/foundation-datepicker/issues/102","id":105571929,"number":102,"title":"Wrong dates are getting disabled when the local time zone(system time) is set to EST.","user":{"login":"onewhocodes","id":13976808,"avatar_url":"https://avatars.githubusercontent.com/u/13976808?v=3","gravatar_id":"","url":"https://api.github.com/users/onewhocodes","html_url":"https://github.com/onewhocodes","followers_url":"https://api.github.com/users/onewhocodes/followers","following_url":"https://api.github.com/users/onewhocodes/following{/other_user}","gists_url":"https://api.github.com/users/onewhocodes/gists{/gist_id}","starred_url":"https://api.github.com/users/onewhocodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onewhocodes/subscriptions","organizations_url":"https://api.github.com/users/onewhocodes/orgs","repos_url":"https://api.github.com/users/onewhocodes/repos","events_url":"https://api.github.com/users/onewhocodes/events{/privacy}","received_events_url":"https://api.github.com/users/onewhocodes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-09T10:48:26Z","updated_at":"2015-09-09T19:14:56Z","closed_at":"2015-09-09T19:14:56Z","body":"Hi Peter,\r\n\r\nThanks for the datepicker!\r\n\r\nI'm trying to disable the previous dates in the calendar. So I've put this code. Please check the image attached(for better understanding).\r\n\r\nvar nowTemp = new Date();\r\nvar now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);\r\nvar checkin = $('#dpd1').fdatepicker({\r\n    onRender: function (date) {\r\n    console.log(date+'---'+now+'---'+date.valueOf()+'-<-'+now.valueOf()+'---'+(date.valueOf() <     now.valueOf()));\r\n    return date.valueOf() < now.valueOf() ? 'disabled' : '';\r\n}\r\n}).data('datepicker');\r\n\r\nIt works great for time zone IST, but disables today's date for time zone EST.\r\n![datepicker-issue](https://cloud.githubusercontent.com/assets/13976808/9759928/5e6526ea-56b6-11e5-9fcc-4391031d4f38.png)"},"comment":{"url":"https://api.github.com/repos/najlepsiwebdesigner/foundation-datepicker/issues/comments/139018134","html_url":"https://github.com/najlepsiwebdesigner/foundation-datepicker/issues/102#issuecomment-139018134","issue_url":"https://api.github.com/repos/najlepsiwebdesigner/foundation-datepicker/issues/102","id":139018134,"user":{"login":"najlepsiwebdesigner","id":1616695,"avatar_url":"https://avatars.githubusercontent.com/u/1616695?v=3","gravatar_id":"","url":"https://api.github.com/users/najlepsiwebdesigner","html_url":"https://github.com/najlepsiwebdesigner","followers_url":"https://api.github.com/users/najlepsiwebdesigner/followers","following_url":"https://api.github.com/users/najlepsiwebdesigner/following{/other_user}","gists_url":"https://api.github.com/users/najlepsiwebdesigner/gists{/gist_id}","starred_url":"https://api.github.com/users/najlepsiwebdesigner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/najlepsiwebdesigner/subscriptions","organizations_url":"https://api.github.com/users/najlepsiwebdesigner/orgs","repos_url":"https://api.github.com/users/najlepsiwebdesigner/repos","events_url":"https://api.github.com/users/najlepsiwebdesigner/events{/privacy}","received_events_url":"https://api.github.com/users/najlepsiwebdesigner/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T19:14:56Z","updated_at":"2015-09-09T19:14:56Z","body":":D \r\nhttp://www.worldtimebuddy.com/est-to-ist-converter\r\n\r\nnotice the absolute difference between EST and IST, you'll get your answer"}}