{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/3677","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/3677/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/3677/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/3677/events","html_url":"https://github.com/kripken/emscripten/issues/3677","id":100635503,"number":3677,"title":"strftime and %-m syntax","user":{"login":"desapi","id":7399834,"avatar_url":"https://avatars.githubusercontent.com/u/7399834?v=3","gravatar_id":"","url":"https://api.github.com/users/desapi","html_url":"https://github.com/desapi","followers_url":"https://api.github.com/users/desapi/followers","following_url":"https://api.github.com/users/desapi/following{/other_user}","gists_url":"https://api.github.com/users/desapi/gists{/gist_id}","starred_url":"https://api.github.com/users/desapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desapi/subscriptions","organizations_url":"https://api.github.com/users/desapi/orgs","repos_url":"https://api.github.com/users/desapi/repos","events_url":"https://api.github.com/users/desapi/events{/privacy}","received_events_url":"https://api.github.com/users/desapi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-12T21:03:34Z","updated_at":"2015-09-04T03:55:05Z","closed_at":null,"body":"Using strftime with the dash syntax \"%-m\" to omit leading zeros doesn't work."},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/137644849","html_url":"https://github.com/kripken/emscripten/issues/3677#issuecomment-137644849","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/3677","id":137644849,"user":{"login":"desapi","id":7399834,"avatar_url":"https://avatars.githubusercontent.com/u/7399834?v=3","gravatar_id":"","url":"https://api.github.com/users/desapi","html_url":"https://github.com/desapi","followers_url":"https://api.github.com/users/desapi/followers","following_url":"https://api.github.com/users/desapi/following{/other_user}","gists_url":"https://api.github.com/users/desapi/gists{/gist_id}","starred_url":"https://api.github.com/users/desapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desapi/subscriptions","organizations_url":"https://api.github.com/users/desapi/orgs","repos_url":"https://api.github.com/users/desapi/repos","events_url":"https://api.github.com/users/desapi/events{/privacy}","received_events_url":"https://api.github.com/users/desapi/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T03:55:05Z","updated_at":"2015-09-04T03:55:05Z","body":"This should print out the current date in Year/Month/Day format but it just returns `\"%-Y-%-m-%-d\"`.\r\n\r\n```C++\r\ntime_t timer = time(NULL);\r\ntm *local = localtime(&timer);\r\nmktime(local);\r\nchar buffer[80];\r\nstrftime(buffer, sizeof(buffer), \"%-Y-%-m-%-d\", local);\t\r\nprintf(\"%s\\n\", buffer);\r\n```"}}