{"action":"created","issue":{"url":"https://api.github.com/repos/taitems/jQuery.Gantt/issues/176","labels_url":"https://api.github.com/repos/taitems/jQuery.Gantt/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/taitems/jQuery.Gantt/issues/176/comments","events_url":"https://api.github.com/repos/taitems/jQuery.Gantt/issues/176/events","html_url":"https://github.com/taitems/jQuery.Gantt/issues/176","id":82740161,"number":176,"title":"TimeZone issues","user":{"login":"huguesmax","id":4928314,"avatar_url":"https://avatars.githubusercontent.com/u/4928314?v=3","gravatar_id":"","url":"https://api.github.com/users/huguesmax","html_url":"https://github.com/huguesmax","followers_url":"https://api.github.com/users/huguesmax/followers","following_url":"https://api.github.com/users/huguesmax/following{/other_user}","gists_url":"https://api.github.com/users/huguesmax/gists{/gist_id}","starred_url":"https://api.github.com/users/huguesmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huguesmax/subscriptions","organizations_url":"https://api.github.com/users/huguesmax/orgs","repos_url":"https://api.github.com/users/huguesmax/repos","events_url":"https://api.github.com/users/huguesmax/events{/privacy}","received_events_url":"https://api.github.com/users/huguesmax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-30T07:48:44Z","updated_at":"2015-05-31T11:15:13Z","closed_at":"2015-05-31T11:15:13Z","body":"\r\n\r\nHello I use jQuery.gantt to show villa reseration\r\nmy time zone is UTC+1 ( Paris ) and I send \r\n\r\n{ \"to\" : \"/Date(1434146400000)/\", \r\n\"customClass\" : \"ganttConfirmed\", \r\n\"from\" : \"/Date(1433541600000)/\", \r\n\"label\" : \"PCI PCI\", \r\n\"dataObj\" : \"303\" },\r\n\r\nfrom 06/06/2015 to 13/06/2015 ( DD/MM/YYYY)\r\nview is ok\r\n\r\n![days](https://cloud.githubusercontent.com/assets/4928314/7896180/1c33f544-06b1-11e5-917c-8327479ed3f9.PNG)\r\n\r\n\r\n\r\nIf I change my TimeZone to UTC-5 ( USA ) on my computer, and I send same data,   the view move to 5/06/2015 to 12/06/2015\r\n\r\nand the result is wrong\r\n\r\n![-1days](https://cloud.githubusercontent.com/assets/4928314/7896183/31d65a86-06b1-11e5-82b5-1d0235cd46cd.PNG)\r\n\r\nSomeone has a idea how I can solve this problem ?\r\n"},"comment":{"url":"https://api.github.com/repos/taitems/jQuery.Gantt/issues/comments/107157170","html_url":"https://github.com/taitems/jQuery.Gantt/issues/176#issuecomment-107157170","issue_url":"https://api.github.com/repos/taitems/jQuery.Gantt/issues/176","id":107157170,"user":{"login":"usmonster","id":1373334,"avatar_url":"https://avatars.githubusercontent.com/u/1373334?v=3","gravatar_id":"","url":"https://api.github.com/users/usmonster","html_url":"https://github.com/usmonster","followers_url":"https://api.github.com/users/usmonster/followers","following_url":"https://api.github.com/users/usmonster/following{/other_user}","gists_url":"https://api.github.com/users/usmonster/gists{/gist_id}","starred_url":"https://api.github.com/users/usmonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmonster/subscriptions","organizations_url":"https://api.github.com/users/usmonster/orgs","repos_url":"https://api.github.com/users/usmonster/repos","events_url":"https://api.github.com/users/usmonster/events{/privacy}","received_events_url":"https://api.github.com/users/usmonster/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T11:15:13Z","updated_at":"2015-05-31T11:15:13Z","body":"Hi, and thanks for using the plugin!\r\n\r\nWhen a `to`/`from`date is specified in milliseconds, it defines an absolute moment in time. The display of that time on the chart will be different depending on your time zone. If you want to specify a \"local time\" (displayed the same way regardless of time zone), you can just directly use a format like `\"2015/06/13 00:00\"` in your data instead of `\"/Date(...)/\"`. You can even leave off the time part, in your case, so just `\"2015/06/13\"` should be fine for your purposes.\r\n\r\n(Note: The value is just passed directly to the `Date` constructor, so you can see [this page](http://dygraphs.com/date-formats.html) for an idea of what other string formats should work. This will be in the updated documentation for the next version.)\r\n\r\nPlease comment if this doesn't answer your question, and I will reopen the issue. Thanks again!"}}