{"action":"created","issue":{"url":"https://api.github.com/repos/alexellis/phototimer/issues/2","repository_url":"https://api.github.com/repos/alexellis/phototimer","labels_url":"https://api.github.com/repos/alexellis/phototimer/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/alexellis/phototimer/issues/2/comments","events_url":"https://api.github.com/repos/alexellis/phototimer/issues/2/events","html_url":"https://github.com/alexellis/phototimer/issues/2","id":216257550,"number":2,"title":"Need some timezone support.","user":{"login":"robmarkoski","id":473367,"avatar_url":"https://avatars0.githubusercontent.com/u/473367?v=3","gravatar_id":"","url":"https://api.github.com/users/robmarkoski","html_url":"https://github.com/robmarkoski","followers_url":"https://api.github.com/users/robmarkoski/followers","following_url":"https://api.github.com/users/robmarkoski/following{/other_user}","gists_url":"https://api.github.com/users/robmarkoski/gists{/gist_id}","starred_url":"https://api.github.com/users/robmarkoski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robmarkoski/subscriptions","organizations_url":"https://api.github.com/users/robmarkoski/orgs","repos_url":"https://api.github.com/users/robmarkoski/repos","events_url":"https://api.github.com/users/robmarkoski/events{/privacy}","received_events_url":"https://api.github.com/users/robmarkoski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-23T01:16:57Z","updated_at":"2017-06-23T07:31:02Z","closed_at":"2017-06-23T07:31:02Z","body":"After banging my head for a while, I realised the Docker images timezone was not synced to my local one.\r\n\r\nFixed it with adding the following to Dockerfile\r\n\r\n```\r\nENV TZ=Australia/Perth\r\nRUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone\r\n```\r\n\r\nI didn't add a pull request, as I thought you would rather add functionality in the python script and allow timezones to be set in config.py\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alexellis/phototimer/issues/comments/310593730","html_url":"https://github.com/alexellis/phototimer/issues/2#issuecomment-310593730","issue_url":"https://api.github.com/repos/alexellis/phototimer/issues/2","id":310593730,"user":{"login":"alexellis","id":6358735,"avatar_url":"https://avatars2.githubusercontent.com/u/6358735?v=3","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"created_at":"2017-06-23T07:31:02Z","updated_at":"2017-06-23T07:31:02Z","body":"@robmarkoski thanks for raising this issue and for using Phototimer\r\n\r\nIn practice I found that changing the `TZ` variable via Docker is enough to get the correct time.\r\n\r\n```\r\ndocker run ... -e TZ=Europe/London ...\r\n```\r\n\r\nThe supporting blog post had an update for this too. http://blog.alexellis.io/tag/picamera/"}}
{"actor":{"display_login":"alexellis"}}