{"action":"created","issue":{"url":"https://api.github.com/repos/vim-jp/vital.vim/issues/334","labels_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/334/comments","events_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/334/events","html_url":"https://github.com/vim-jp/vital.vim/issues/334","id":115085349,"number":334,"title":"DateTime unix_time/from_unix_time return wrong value","user":{"login":"lambdalisue","id":546312,"avatar_url":"https://avatars.githubusercontent.com/u/546312?v=3","gravatar_id":"","url":"https://api.github.com/users/lambdalisue","html_url":"https://github.com/lambdalisue","followers_url":"https://api.github.com/users/lambdalisue/followers","following_url":"https://api.github.com/users/lambdalisue/following{/other_user}","gists_url":"https://api.github.com/users/lambdalisue/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdalisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdalisue/subscriptions","organizations_url":"https://api.github.com/users/lambdalisue/orgs","repos_url":"https://api.github.com/users/lambdalisue/repos","events_url":"https://api.github.com/users/lambdalisue/events{/privacy}","received_events_url":"https://api.github.com/users/lambdalisue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-04T15:58:31Z","updated_at":"2015-11-04T16:08:19Z","closed_at":null,"body":"```vim\r\nlet V = vital#of('vital')\r\nlet T = V.import('DateTime')\r\n\r\nlet tz = T.timezone('+02:00')\r\nlet dt = T.from_date(2000, 8, 1, 0, 0, 0, tz)\r\n\r\nlet ts = dt.unix_time()\r\n\r\nechomsg dt.to_string()\r\n\" 2000-08-01 00:00:00 +0200\r\nechomsg T.from_unix_time(ts).to_string()\r\n\" 2000-07-31 07:00:00 +0900\r\nechomsg T.from_unix_time(ts, tz).to_string()\r\n\" 2000-07-31 00:00:00 +0200\r\n```\r\n\r\nExecuted in Japan (+09:00)"},"comment":{"url":"https://api.github.com/repos/vim-jp/vital.vim/issues/comments/153776542","html_url":"https://github.com/vim-jp/vital.vim/issues/334#issuecomment-153776542","issue_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/334","id":153776542,"user":{"login":"lambdalisue","id":546312,"avatar_url":"https://avatars.githubusercontent.com/u/546312?v=3","gravatar_id":"","url":"https://api.github.com/users/lambdalisue","html_url":"https://github.com/lambdalisue","followers_url":"https://api.github.com/users/lambdalisue/followers","following_url":"https://api.github.com/users/lambdalisue/following{/other_user}","gists_url":"https://api.github.com/users/lambdalisue/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdalisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdalisue/subscriptions","organizations_url":"https://api.github.com/users/lambdalisue/orgs","repos_url":"https://api.github.com/users/lambdalisue/repos","events_url":"https://api.github.com/users/lambdalisue/events{/privacy}","received_events_url":"https://api.github.com/users/lambdalisue/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T16:08:19Z","updated_at":"2015-11-04T16:08:19Z","body":"https://github.com/vim-jp/vital.vim/blob/master/autoload/vital/__latest__/DateTime.vim#L350"}}