{"action":"created","issue":{"url":"https://api.github.com/repos/mlnlover11/KopiLua-v5.1.5/issues/3","repository_url":"https://api.github.com/repos/mlnlover11/KopiLua-v5.1.5","labels_url":"https://api.github.com/repos/mlnlover11/KopiLua-v5.1.5/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mlnlover11/KopiLua-v5.1.5/issues/3/comments","events_url":"https://api.github.com/repos/mlnlover11/KopiLua-v5.1.5/issues/3/events","html_url":"https://github.com/mlnlover11/KopiLua-v5.1.5/issues/3","id":144451956,"number":3,"title":"os.date() argument corruption (solution included)","user":{"login":"cbelyaev","id":16681510,"avatar_url":"https://avatars.githubusercontent.com/u/16681510?v=3","gravatar_id":"","url":"https://api.github.com/users/cbelyaev","html_url":"https://github.com/cbelyaev","followers_url":"https://api.github.com/users/cbelyaev/followers","following_url":"https://api.github.com/users/cbelyaev/following{/other_user}","gists_url":"https://api.github.com/users/cbelyaev/gists{/gist_id}","starred_url":"https://api.github.com/users/cbelyaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbelyaev/subscriptions","organizations_url":"https://api.github.com/users/cbelyaev/orgs","repos_url":"https://api.github.com/users/cbelyaev/repos","events_url":"https://api.github.com/users/cbelyaev/events{/privacy}","received_events_url":"https://api.github.com/users/cbelyaev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-30T03:13:25Z","updated_at":"2016-04-01T19:38:18Z","closed_at":"2016-04-01T19:38:18Z","body":"Problem:\r\nIn the sample:\r\n```\r\nfor i=1,10,1 do\r\n  print(os.date(\"%H:%M:%S\"))\r\nend\r\n```\r\ntime is printed in the first iteration only.\r\n\r\nSolution:\r\nfile KopiLua/src/loslib.cs\r\nline 153 must look like:\r\n`CharPtr s = new CharPtr(LuaLOptString(L, 1, \"%c\"));`\r\n"},"comment":{"url":"https://api.github.com/repos/mlnlover11/KopiLua-v5.1.5/issues/comments/204538294","html_url":"https://github.com/mlnlover11/KopiLua-v5.1.5/issues/3#issuecomment-204538294","issue_url":"https://api.github.com/repos/mlnlover11/KopiLua-v5.1.5/issues/3","id":204538294,"user":{"login":"mlnlover11","id":1093204,"avatar_url":"https://avatars.githubusercontent.com/u/1093204?v=3","gravatar_id":"","url":"https://api.github.com/users/mlnlover11","html_url":"https://github.com/mlnlover11","followers_url":"https://api.github.com/users/mlnlover11/followers","following_url":"https://api.github.com/users/mlnlover11/following{/other_user}","gists_url":"https://api.github.com/users/mlnlover11/gists{/gist_id}","starred_url":"https://api.github.com/users/mlnlover11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlnlover11/subscriptions","organizations_url":"https://api.github.com/users/mlnlover11/orgs","repos_url":"https://api.github.com/users/mlnlover11/repos","events_url":"https://api.github.com/users/mlnlover11/events{/privacy}","received_events_url":"https://api.github.com/users/mlnlover11/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T19:38:18Z","updated_at":"2016-04-01T19:38:18Z","body":"This may fix one issue but does not fix the underlying problem that `strftime` is not implemented in this fork. I would recommend using one of the successive forks (such as NLua) which actually implements and fixes a lot more than just that issue. "}}