{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/1459","labels_url":"https://api.github.com/repos/grafana/grafana/issues/1459/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/1459/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/1459/events","html_url":"https://github.com/grafana/grafana/issues/1459","id":57237170,"number":1459,"title":"Localize time_format in graphs","user":{"login":"Alarmfifa","id":3095492,"avatar_url":"https://avatars.githubusercontent.com/u/3095492?v=3","gravatar_id":"","url":"https://api.github.com/users/Alarmfifa","html_url":"https://github.com/Alarmfifa","followers_url":"https://api.github.com/users/Alarmfifa/followers","following_url":"https://api.github.com/users/Alarmfifa/following{/other_user}","gists_url":"https://api.github.com/users/Alarmfifa/gists{/gist_id}","starred_url":"https://api.github.com/users/Alarmfifa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alarmfifa/subscriptions","organizations_url":"https://api.github.com/users/Alarmfifa/orgs","repos_url":"https://api.github.com/users/Alarmfifa/repos","events_url":"https://api.github.com/users/Alarmfifa/events{/privacy}","received_events_url":"https://api.github.com/users/Alarmfifa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grafana/grafana/labels/panel:graph","name":"panel:graph","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-10T21:11:25Z","updated_at":"2015-08-12T09:25:04Z","closed_at":null,"body":"Hello dear developers team.\r\nThank you for a awesome product, but I have one problem.\r\n\r\nNow there is a hadcoded US date format in [time_format function](https://github.com/grafana/grafana/blob/master/src/app/panels/graph/graph.js#L373).\r\nThe most annoying case is display month and day. When I see something like \"2/3\" I'm a bit confused. Is it \"the second of Mart\" or \"the third of February\"?\r\nThe most sad thing, that I can't to configure this behaviour. \r\n\r\nUnfortunately the simplest way (and may be the most proper) doesn't help here. I mean [toLocaleString](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString) with additional options. You can return different array of options instead of hardcoded format pattern and this method convert date in accordance with a right locale.\r\nBut in our case there is a jquery plot and it requires date format for converting timestamp by itself.\r\n\r\nSo, the second way is make some kind of mapping locale -> format array. [Example](http://stackoverflow.com/questions/2388115/get-locale-short-date-format-using-javascript/9893752#9893752). It seems a bit ugly. But it could be a single working solution.\r\n\r\nMay be I missed some obvious and better solutions. That's why I didn't create a pull request. =)"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/130234710","html_url":"https://github.com/grafana/grafana/issues/1459#issuecomment-130234710","issue_url":"https://api.github.com/repos/grafana/grafana/issues/1459","id":130234710,"user":{"login":"Toubib","id":484506,"avatar_url":"https://avatars.githubusercontent.com/u/484506?v=3","gravatar_id":"","url":"https://api.github.com/users/Toubib","html_url":"https://github.com/Toubib","followers_url":"https://api.github.com/users/Toubib/followers","following_url":"https://api.github.com/users/Toubib/following{/other_user}","gists_url":"https://api.github.com/users/Toubib/gists{/gist_id}","starred_url":"https://api.github.com/users/Toubib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toubib/subscriptions","organizations_url":"https://api.github.com/users/Toubib/orgs","repos_url":"https://api.github.com/users/Toubib/repos","events_url":"https://api.github.com/users/Toubib/events{/privacy}","received_events_url":"https://api.github.com/users/Toubib/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T09:25:04Z","updated_at":"2015-08-12T09:25:04Z","body":"This would be useful as European date format is not in the same order (day/month/year) dates are actually confusing"}}