{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/2130","repository_url":"https://api.github.com/repos/micropython/micropython","labels_url":"https://api.github.com/repos/micropython/micropython/issues/2130/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/2130/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/2130/events","html_url":"https://github.com/micropython/micropython/issues/2130","id":157508143,"number":2130,"title":"Timezone support for \"time\" module","user":{"login":"puuu","id":19514939,"avatar_url":"https://avatars0.githubusercontent.com/u/19514939?v=3","gravatar_id":"","url":"https://api.github.com/users/puuu","html_url":"https://github.com/puuu","followers_url":"https://api.github.com/users/puuu/followers","following_url":"https://api.github.com/users/puuu/following{/other_user}","gists_url":"https://api.github.com/users/puuu/gists{/gist_id}","starred_url":"https://api.github.com/users/puuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puuu/subscriptions","organizations_url":"https://api.github.com/users/puuu/orgs","repos_url":"https://api.github.com/users/puuu/repos","events_url":"https://api.github.com/users/puuu/events{/privacy}","received_events_url":"https://api.github.com/users/puuu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-05-30T13:58:18Z","updated_at":"2017-06-11T20:35:50Z","closed_at":null,"body":"From the release notes of MicroPython ESP8266 firmware v1.8 is clear, `ntptime` only supports UTC. I agree, time zone handling is out of the focus of `ntptime`. But it would be nice, if `ntptime.settime()` would support a offset argument, which is be added to `ntptime.time()` before setting the rtc.\n\nSomething like `ntptime.settime(offset=2*3600)` to provide CEST.\nThen, getting the local time is easy as `time.localtime()` (if #2097 is solved).\n\nI believe, this is a simple api enhancement. Later, a timezone module may calculate the offset by time zone and daylight saving.\n\nI can provide a pull request, but I am not sure about the api and what unit (seconds, minutes or hours) is advisable for the offset. Also the PR may conflict with #2121 .\n"},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/307655061","html_url":"https://github.com/micropython/micropython/issues/2130#issuecomment-307655061","issue_url":"https://api.github.com/repos/micropython/micropython/issues/2130","id":307655061,"user":{"login":"pfalcon","id":500451,"avatar_url":"https://avatars0.githubusercontent.com/u/500451?v=3","gravatar_id":"","url":"https://api.github.com/users/pfalcon","html_url":"https://github.com/pfalcon","followers_url":"https://api.github.com/users/pfalcon/followers","following_url":"https://api.github.com/users/pfalcon/following{/other_user}","gists_url":"https://api.github.com/users/pfalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/pfalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfalcon/subscriptions","organizations_url":"https://api.github.com/users/pfalcon/orgs","repos_url":"https://api.github.com/users/pfalcon/repos","events_url":"https://api.github.com/users/pfalcon/events{/privacy}","received_events_url":"https://api.github.com/users/pfalcon/received_events","type":"User","site_admin":false},"created_at":"2017-06-11T20:35:50Z","updated_at":"2017-06-11T20:35:50Z","body":"Let's breath new life into this with https://github.com/micropython/micropython/issues/3141"}}
{"actor":{"display_login":"pfalcon"}}