{"action":"opened","issue":{"url":"https://api.github.com/repos/areski/django-nvd3/issues/46","labels_url":"https://api.github.com/repos/areski/django-nvd3/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/areski/django-nvd3/issues/46/comments","events_url":"https://api.github.com/repos/areski/django-nvd3/issues/46/events","html_url":"https://github.com/areski/django-nvd3/issues/46","id":53616388,"number":46,"title":"Datetime handling","user":{"login":"nils-werner","id":88704,"avatar_url":"https://avatars.githubusercontent.com/u/88704?v=3","gravatar_id":"","url":"https://api.github.com/users/nils-werner","html_url":"https://github.com/nils-werner","followers_url":"https://api.github.com/users/nils-werner/followers","following_url":"https://api.github.com/users/nils-werner/following{/other_user}","gists_url":"https://api.github.com/users/nils-werner/gists{/gist_id}","starred_url":"https://api.github.com/users/nils-werner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nils-werner/subscriptions","organizations_url":"https://api.github.com/users/nils-werner/orgs","repos_url":"https://api.github.com/users/nils-werner/repos","events_url":"https://api.github.com/users/nils-werner/events{/privacy}","received_events_url":"https://api.github.com/users/nils-werner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-07T10:08:00Z","updated_at":"2015-01-07T10:08:00Z","closed_at":null,"body":"The current way of handling date axises is very convoluted and requires a lot of boilerplate code, e.g.\r\n\r\n    start_time = int(time.mktime(datetime.datetime(2012, 6, 1).timetuple()) * 1000)\r\n    nb_element = 100\r\n    xdata = range(nb_element)\r\n    xdata = map(lambda x: start_time + x * 1000000000, xdata)\r\n\r\nThis makes it very easy to make mistakes and is very cumbersome to the user. Django itself is using `datetime.datetime` which allows much nicer handling of this kind of data.\r\n\r\nI thing `django-nvd3` should allow the use of proper datetime data instead of asking the user to fiddle with epoch milliseconds..."}}