{"action":"created","comment":{"url":"https://api.github.com/repos/vim-jp/vital.vim/pulls/comments/44677328","id":44677328,"diff_hunk":"@@ -454,8 +455,18 @@ function! s:DateTime.format(format, ...) abort\n endfunction\n \" @vimlint(EVL102, 0, l:locale)\n function! s:DateTime.strftime(format, ...) abort\n-  let expr = printf('strftime(%s, %d)', string(a:format), self.unix_time())\n-  return s:_with_locale(expr, a:0 ? a:1 : '')\n+  let tz = self.timezone()\n+  let ts = self.unix_time() + tz.offset() - s:tz_default_offset\n+  let locale = get(a:000, 0, '')\n+  let format = a:format =~ '%z'","path":"autoload/vital/__latest__/DateTime.vim","position":17,"original_position":17,"commit_id":"4805ea4ae7443596487374d900d2aab4d77973ec","original_commit_id":"4805ea4ae7443596487374d900d2aab4d77973ec","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},"body":"OK","created_at":"2015-11-12T16:20:23Z","updated_at":"2015-11-12T16:20:23Z","html_url":"https://github.com/vim-jp/vital.vim/pull/342#discussion_r44677328","pull_request_url":"https://api.github.com/repos/vim-jp/vital.vim/pulls/342","_links":{"self":{"href":"https://api.github.com/repos/vim-jp/vital.vim/pulls/comments/44677328"},"html":{"href":"https://github.com/vim-jp/vital.vim/pull/342#discussion_r44677328"},"pull_request":{"href":"https://api.github.com/repos/vim-jp/vital.vim/pulls/342"}}},"pull_request":{"url":"https://api.github.com/repos/vim-jp/vital.vim/pulls/342","id":50144734,"html_url":"https://github.com/vim-jp/vital.vim/pull/342","diff_url":"https://github.com/vim-jp/vital.vim/pull/342.diff","patch_url":"https://github.com/vim-jp/vital.vim/pull/342.patch","issue_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/342","number":342,"state":"open","locked":false,"title":"DateTime: Fix 'strftime()' to follow timezone of the DateTime object","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},"body":"'%c' などハンドルできないものが多かったので別メソッドとして追加しました。\r\nちなみにベンチマークは https://gist.github.com/lambdalisue/e73bd722ca8840e82bd8\r\n\r\n追記\r\n\r\n`stftime` にマージしました。","created_at":"2015-11-09T16:35:34Z","updated_at":"2015-11-12T16:20:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ab829fb17e0a5040c7b9ed5e7f0bae07bc04573","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vim-jp/vital.vim/pulls/342/commits","review_comments_url":"https://api.github.com/repos/vim-jp/vital.vim/pulls/342/comments","review_comment_url":"https://api.github.com/repos/vim-jp/vital.vim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/342/comments","statuses_url":"https://api.github.com/repos/vim-jp/vital.vim/statuses/4805ea4ae7443596487374d900d2aab4d77973ec","head":{"label":"lambdalisue:fix/datetime_improve_response","ref":"fix/datetime_improve_response","sha":"4805ea4ae7443596487374d900d2aab4d77973ec","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},"repo":{"id":20846889,"name":"vital.vim","full_name":"lambdalisue/vital.vim","owner":{"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},"private":false,"html_url":"https://github.com/lambdalisue/vital.vim","description":"A comprehensive Vim utility functions for Vim plugins","fork":true,"url":"https://api.github.com/repos/lambdalisue/vital.vim","forks_url":"https://api.github.com/repos/lambdalisue/vital.vim/forks","keys_url":"https://api.github.com/repos/lambdalisue/vital.vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lambdalisue/vital.vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lambdalisue/vital.vim/teams","hooks_url":"https://api.github.com/repos/lambdalisue/vital.vim/hooks","issue_events_url":"https://api.github.com/repos/lambdalisue/vital.vim/issues/events{/number}","events_url":"https://api.github.com/repos/lambdalisue/vital.vim/events","assignees_url":"https://api.github.com/repos/lambdalisue/vital.vim/assignees{/user}","branches_url":"https://api.github.com/repos/lambdalisue/vital.vim/branches{/branch}","tags_url":"https://api.github.com/repos/lambdalisue/vital.vim/tags","blobs_url":"https://api.github.com/repos/lambdalisue/vital.vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lambdalisue/vital.vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lambdalisue/vital.vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/lambdalisue/vital.vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lambdalisue/vital.vim/statuses/{sha}","languages_url":"https://api.github.com/repos/lambdalisue/vital.vim/languages","stargazers_url":"https://api.github.com/repos/lambdalisue/vital.vim/stargazers","contributors_url":"https://api.github.com/repos/lambdalisue/vital.vim/contributors","subscribers_url":"https://api.github.com/repos/lambdalisue/vital.vim/subscribers","subscription_url":"https://api.github.com/repos/lambdalisue/vital.vim/subscription","commits_url":"https://api.github.com/repos/lambdalisue/vital.vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/lambdalisue/vital.vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/lambdalisue/vital.vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/lambdalisue/vital.vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/lambdalisue/vital.vim/contents/{+path}","compare_url":"https://api.github.com/repos/lambdalisue/vital.vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lambdalisue/vital.vim/merges","archive_url":"https://api.github.com/repos/lambdalisue/vital.vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lambdalisue/vital.vim/downloads","issues_url":"https://api.github.com/repos/lambdalisue/vital.vim/issues{/number}","pulls_url":"https://api.github.com/repos/lambdalisue/vital.vim/pulls{/number}","milestones_url":"https://api.github.com/repos/lambdalisue/vital.vim/milestones{/number}","notifications_url":"https://api.github.com/repos/lambdalisue/vital.vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lambdalisue/vital.vim/labels{/name}","releases_url":"https://api.github.com/repos/lambdalisue/vital.vim/releases{/id}","created_at":"2014-06-15T02:59:01Z","updated_at":"2015-04-29T04:22:51Z","pushed_at":"2015-11-12T16:15:26Z","git_url":"git://github.com/lambdalisue/vital.vim.git","ssh_url":"git@github.com:lambdalisue/vital.vim.git","clone_url":"https://github.com/lambdalisue/vital.vim.git","svn_url":"https://github.com/lambdalisue/vital.vim","homepage":"","size":2689,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vim-jp:master","ref":"master","sha":"a85446d2a21d3ac0b38caa2a5783d9c0f926f82c","user":{"login":"vim-jp","id":1051958,"avatar_url":"https://avatars.githubusercontent.com/u/1051958?v=3","gravatar_id":"","url":"https://api.github.com/users/vim-jp","html_url":"https://github.com/vim-jp","followers_url":"https://api.github.com/users/vim-jp/followers","following_url":"https://api.github.com/users/vim-jp/following{/other_user}","gists_url":"https://api.github.com/users/vim-jp/gists{/gist_id}","starred_url":"https://api.github.com/users/vim-jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vim-jp/subscriptions","organizations_url":"https://api.github.com/users/vim-jp/orgs","repos_url":"https://api.github.com/users/vim-jp/repos","events_url":"https://api.github.com/users/vim-jp/events{/privacy}","received_events_url":"https://api.github.com/users/vim-jp/received_events","type":"Organization","site_admin":false},"repo":{"id":1308435,"name":"vital.vim","full_name":"vim-jp/vital.vim","owner":{"login":"vim-jp","id":1051958,"avatar_url":"https://avatars.githubusercontent.com/u/1051958?v=3","gravatar_id":"","url":"https://api.github.com/users/vim-jp","html_url":"https://github.com/vim-jp","followers_url":"https://api.github.com/users/vim-jp/followers","following_url":"https://api.github.com/users/vim-jp/following{/other_user}","gists_url":"https://api.github.com/users/vim-jp/gists{/gist_id}","starred_url":"https://api.github.com/users/vim-jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vim-jp/subscriptions","organizations_url":"https://api.github.com/users/vim-jp/orgs","repos_url":"https://api.github.com/users/vim-jp/repos","events_url":"https://api.github.com/users/vim-jp/events{/privacy}","received_events_url":"https://api.github.com/users/vim-jp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vim-jp/vital.vim","description":"A comprehensive Vim utility functions for Vim plugins","fork":false,"url":"https://api.github.com/repos/vim-jp/vital.vim","forks_url":"https://api.github.com/repos/vim-jp/vital.vim/forks","keys_url":"https://api.github.com/repos/vim-jp/vital.vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vim-jp/vital.vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vim-jp/vital.vim/teams","hooks_url":"https://api.github.com/repos/vim-jp/vital.vim/hooks","issue_events_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/events{/number}","events_url":"https://api.github.com/repos/vim-jp/vital.vim/events","assignees_url":"https://api.github.com/repos/vim-jp/vital.vim/assignees{/user}","branches_url":"https://api.github.com/repos/vim-jp/vital.vim/branches{/branch}","tags_url":"https://api.github.com/repos/vim-jp/vital.vim/tags","blobs_url":"https://api.github.com/repos/vim-jp/vital.vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vim-jp/vital.vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vim-jp/vital.vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/vim-jp/vital.vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vim-jp/vital.vim/statuses/{sha}","languages_url":"https://api.github.com/repos/vim-jp/vital.vim/languages","stargazers_url":"https://api.github.com/repos/vim-jp/vital.vim/stargazers","contributors_url":"https://api.github.com/repos/vim-jp/vital.vim/contributors","subscribers_url":"https://api.github.com/repos/vim-jp/vital.vim/subscribers","subscription_url":"https://api.github.com/repos/vim-jp/vital.vim/subscription","commits_url":"https://api.github.com/repos/vim-jp/vital.vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/vim-jp/vital.vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/vim-jp/vital.vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/vim-jp/vital.vim/contents/{+path}","compare_url":"https://api.github.com/repos/vim-jp/vital.vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vim-jp/vital.vim/merges","archive_url":"https://api.github.com/repos/vim-jp/vital.vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vim-jp/vital.vim/downloads","issues_url":"https://api.github.com/repos/vim-jp/vital.vim/issues{/number}","pulls_url":"https://api.github.com/repos/vim-jp/vital.vim/pulls{/number}","milestones_url":"https://api.github.com/repos/vim-jp/vital.vim/milestones{/number}","notifications_url":"https://api.github.com/repos/vim-jp/vital.vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vim-jp/vital.vim/labels{/name}","releases_url":"https://api.github.com/repos/vim-jp/vital.vim/releases{/id}","created_at":"2011-01-30T08:40:37Z","updated_at":"2015-11-04T23:15:55Z","pushed_at":"2015-11-12T16:15:27Z","git_url":"git://github.com/vim-jp/vital.vim.git","ssh_url":"git@github.com:vim-jp/vital.vim.git","clone_url":"https://github.com/vim-jp/vital.vim.git","svn_url":"https://github.com/vim-jp/vital.vim","homepage":"","size":6095,"stargazers_count":193,"watchers_count":193,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":35,"forks":38,"open_issues":35,"watchers":193,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vim-jp/vital.vim/pulls/342"},"html":{"href":"https://github.com/vim-jp/vital.vim/pull/342"},"issue":{"href":"https://api.github.com/repos/vim-jp/vital.vim/issues/342"},"comments":{"href":"https://api.github.com/repos/vim-jp/vital.vim/issues/342/comments"},"review_comments":{"href":"https://api.github.com/repos/vim-jp/vital.vim/pulls/342/comments"},"review_comment":{"href":"https://api.github.com/repos/vim-jp/vital.vim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vim-jp/vital.vim/pulls/342/commits"},"statuses":{"href":"https://api.github.com/repos/vim-jp/vital.vim/statuses/4805ea4ae7443596487374d900d2aab4d77973ec"}}}}