{"action":"created","issue":{"url":"https://api.github.com/repos/lebauce/docker-collectd-plugin/issues/27","repository_url":"https://api.github.com/repos/lebauce/docker-collectd-plugin","labels_url":"https://api.github.com/repos/lebauce/docker-collectd-plugin/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/lebauce/docker-collectd-plugin/issues/27/comments","events_url":"https://api.github.com/repos/lebauce/docker-collectd-plugin/issues/27/events","html_url":"https://github.com/lebauce/docker-collectd-plugin/issues/27","id":148053963,"number":27,"title":"Date&Time issue, bare metal in CEST timezone","user":{"login":"stregatto","id":5973725,"avatar_url":"https://avatars.githubusercontent.com/u/5973725?v=3","gravatar_id":"","url":"https://api.github.com/users/stregatto","html_url":"https://github.com/stregatto","followers_url":"https://api.github.com/users/stregatto/followers","following_url":"https://api.github.com/users/stregatto/following{/other_user}","gists_url":"https://api.github.com/users/stregatto/gists{/gist_id}","starred_url":"https://api.github.com/users/stregatto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stregatto/subscriptions","organizations_url":"https://api.github.com/users/stregatto/orgs","repos_url":"https://api.github.com/users/stregatto/repos","events_url":"https://api.github.com/users/stregatto/events{/privacy}","received_events_url":"https://api.github.com/users/stregatto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-13T13:02:59Z","updated_at":"2016-06-22T09:16:04Z","closed_at":null,"body":"Hello, I'm experiencing a strange behavior with the plugin.\r\nI've the bare-metal  in CEST (+0200) that runs the docker plugins inside a docker image running with `-v /var/run/docker.sock:/var/run/docker.sock:ro` option. \r\nThe `t = stats['read']` has value like \"2016-04-13T14:44:03.808905789+02:00\"\r\nWhen the plugin run the if below use the `time.mktime()` function\r\n```\r\nif t:\r\n            val.time = time.mktime(dateutil.parser.parse(t).timetuple())\r\n        else:\r\n            val.time = time.time()\r\n\r\n```\r\nAnd from documentation: _The timetuple parameter given to mktime() doesn't contain any time zone information (it never does, there is no time zone field in a timetuple). Therefore the function has to \"guess\" which time zone it might be, and mktime() just always assumes that it is local time. That's just how the function behaves._\r\nThat means the plugin sends the metrics 2 hours in the future :) "},"comment":{"url":"https://api.github.com/repos/lebauce/docker-collectd-plugin/issues/comments/227687975","html_url":"https://github.com/lebauce/docker-collectd-plugin/issues/27#issuecomment-227687975","issue_url":"https://api.github.com/repos/lebauce/docker-collectd-plugin/issues/27","id":227687975,"user":{"login":"xneo64","id":10849573,"avatar_url":"https://avatars.githubusercontent.com/u/10849573?v=3","gravatar_id":"","url":"https://api.github.com/users/xneo64","html_url":"https://github.com/xneo64","followers_url":"https://api.github.com/users/xneo64/followers","following_url":"https://api.github.com/users/xneo64/following{/other_user}","gists_url":"https://api.github.com/users/xneo64/gists{/gist_id}","starred_url":"https://api.github.com/users/xneo64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xneo64/subscriptions","organizations_url":"https://api.github.com/users/xneo64/orgs","repos_url":"https://api.github.com/users/xneo64/repos","events_url":"https://api.github.com/users/xneo64/events{/privacy}","received_events_url":"https://api.github.com/users/xneo64/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T09:16:04Z","updated_at":"2016-06-22T09:16:04Z","body":"Seconded. I run my servers using a non-UTC timezone (BST), and the collected metrics are 1 hour in the future in the summer months :)\r\n\r\nIdeally as per Collectd spec the timestamps collected would be in epoch time."}}
{"actor":{"display_login":"xneo64"}}