{"action":"created","issue":{"url":"https://api.github.com/repos/celery/celery/issues/3650","repository_url":"https://api.github.com/repos/celery/celery","labels_url":"https://api.github.com/repos/celery/celery/issues/3650/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/3650/comments","events_url":"https://api.github.com/repos/celery/celery/issues/3650/events","html_url":"https://github.com/celery/celery/issues/3650","id":193368679,"number":3650,"title":"astimezone() argument 1 must be datetime.tzinfo, not function","user":{"login":"contacitltd","id":24195890,"avatar_url":"https://avatars.githubusercontent.com/u/24195890?v=3","gravatar_id":"","url":"https://api.github.com/users/contacitltd","html_url":"https://github.com/contacitltd","followers_url":"https://api.github.com/users/contacitltd/followers","following_url":"https://api.github.com/users/contacitltd/following{/other_user}","gists_url":"https://api.github.com/users/contacitltd/gists{/gist_id}","starred_url":"https://api.github.com/users/contacitltd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contacitltd/subscriptions","organizations_url":"https://api.github.com/users/contacitltd/orgs","repos_url":"https://api.github.com/users/contacitltd/repos","events_url":"https://api.github.com/users/contacitltd/events{/privacy}","received_events_url":"https://api.github.com/users/contacitltd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-04T19:12:10Z","updated_at":"2016-12-06T20:37:42Z","closed_at":null,"body":"Hello,\r\n\r\nI am trying to run a celery beat worker:\r\n`sudo /home/ubuntu/myapp/bin/celery --app=myapp beat -s celerybeat-schedule -l info\r\n`\r\n\r\nAnd I get the following exception:\r\n> [2016-12-04 19:06:01,839: WARNING/MainProcess] dt, timezone.utc if tz is None else timezone.tz_or_local(tz),\r\n> [2016-12-04 19:06:01,839: WARNING/MainProcess] File \"/home/ubuntu/myapp/local/lib/python2.7/site-packages/celery/utils/time.py\", line 299, in localize\r\n> [2016-12-04 19:06:01,839: WARNING/MainProcess] dt = dt.astimezone(tz)\r\n> [2016-12-04 19:06:01,839: WARNING/MainProcess] TypeError\r\n> [2016-12-04 19:06:01,839: WARNING/MainProcess] :\r\n> [2016-12-04 19:06:01,839: WARNING/MainProcess] astimezone() argument 1 must be datetime.tzinfo, not function\r\n\r\nThis also happens when I try to run apply_async function with \"countdown\".\r\nHas anyone seen it before?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/celery/celery/issues/comments/265265241","html_url":"https://github.com/celery/celery/issues/3650#issuecomment-265265241","issue_url":"https://api.github.com/repos/celery/celery/issues/3650","id":265265241,"user":{"login":"ask","id":1558,"avatar_url":"https://avatars.githubusercontent.com/u/1558?v=3","gravatar_id":"","url":"https://api.github.com/users/ask","html_url":"https://github.com/ask","followers_url":"https://api.github.com/users/ask/followers","following_url":"https://api.github.com/users/ask/following{/other_user}","gists_url":"https://api.github.com/users/ask/gists{/gist_id}","starred_url":"https://api.github.com/users/ask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ask/subscriptions","organizations_url":"https://api.github.com/users/ask/orgs","repos_url":"https://api.github.com/users/ask/repos","events_url":"https://api.github.com/users/ask/events{/privacy}","received_events_url":"https://api.github.com/users/ask/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T20:37:42Z","updated_at":"2016-12-06T20:37:42Z","body":"What's the value of the timezone setting?\r\n\r\n```\r\ncelery -A myapp shell\r\n>>> app.conf.timezone\r\n>>> app.timezone\r\n```"}}
{"actor":{"display_login":"ask"}}