{"action":"created","issue":{"url":"https://api.github.com/repos/softwaremill/codebrag/issues/49","repository_url":"https://api.github.com/repos/softwaremill/codebrag","labels_url":"https://api.github.com/repos/softwaremill/codebrag/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/softwaremill/codebrag/issues/49/comments","events_url":"https://api.github.com/repos/softwaremill/codebrag/issues/49/events","html_url":"https://github.com/softwaremill/codebrag/issues/49","id":109755755,"number":49,"title":"Bad timezone for date in browser","user":{"login":"dreignier","id":851579,"avatar_url":"https://avatars.githubusercontent.com/u/851579?v=3","gravatar_id":"","url":"https://api.github.com/users/dreignier","html_url":"https://github.com/dreignier","followers_url":"https://api.github.com/users/dreignier/followers","following_url":"https://api.github.com/users/dreignier/following{/other_user}","gists_url":"https://api.github.com/users/dreignier/gists{/gist_id}","starred_url":"https://api.github.com/users/dreignier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreignier/subscriptions","organizations_url":"https://api.github.com/users/dreignier/orgs","repos_url":"https://api.github.com/users/dreignier/repos","events_url":"https://api.github.com/users/dreignier/events{/privacy}","received_events_url":"https://api.github.com/users/dreignier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-05T09:02:03Z","updated_at":"2016-04-02T11:44:27Z","closed_at":null,"body":"I have a codebrag on a CentOS in the CEST timezone. My browser is in the CEST timezone too. And the date of commits and comments are wrong (shift of 2 hours).\r\n\r\nIt's because when my browser receive the commits (for example), the json is like this : \r\n\r\n    {\"commit\":[{\"id\":\"xxx\",\"repoName\":\"xxx\",\"sha\":\"xxx\"\r\n    ,\"message\":\"correction code propre\\n\\naddresses #14895\\n\\ngit-svn-id: http://xxx/svn\r\n    xxx@38455 a77b0ce4-d186-493e-baf1-5dd2f1cda47c\\n\",\"authorName\":\"xxx\",\"authorEmail\"\r\n    :\"xxx@xxx\",\"date\":\"2015-10-05T10:27:33Z\",\"state\":\"AwaitingUserReview\"\r\n    ,\"authorAvatarUrl\":\"xxx\",\"reviewers\"\r\n    :[]}],\"older\":0,\"newer\":0}\r\n\r\nAs you can see, the date is `2015-10-05T10:27:33Z`. But it is wrong. The correct date should be this date in the CEST timezone (so GMT +2 during summer). So the browser javascript just shift the date of 2 hours at displaying."},"comment":{"url":"https://api.github.com/repos/softwaremill/codebrag/issues/comments/204699543","html_url":"https://github.com/softwaremill/codebrag/issues/49#issuecomment-204699543","issue_url":"https://api.github.com/repos/softwaremill/codebrag/issues/49","id":204699543,"user":{"login":"dstrimble","id":10944604,"avatar_url":"https://avatars.githubusercontent.com/u/10944604?v=3","gravatar_id":"","url":"https://api.github.com/users/dstrimble","html_url":"https://github.com/dstrimble","followers_url":"https://api.github.com/users/dstrimble/followers","following_url":"https://api.github.com/users/dstrimble/following{/other_user}","gists_url":"https://api.github.com/users/dstrimble/gists{/gist_id}","starred_url":"https://api.github.com/users/dstrimble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstrimble/subscriptions","organizations_url":"https://api.github.com/users/dstrimble/orgs","repos_url":"https://api.github.com/users/dstrimble/repos","events_url":"https://api.github.com/users/dstrimble/events{/privacy}","received_events_url":"https://api.github.com/users/dstrimble/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T11:44:26Z","updated_at":"2016-04-02T11:44:26Z","body":"I found a workaround, apparently the issue is when it's pulling the timestamp and inserting into the H2 database. I changed the server time to UTC and then reset the H2 database, after it did it's thing everything looked better."}}