{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rustc-perf/issues/24","repository_url":"https://api.github.com/repos/rust-lang-nursery/rustc-perf","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustc-perf/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustc-perf/issues/24/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rustc-perf/issues/24/events","html_url":"https://github.com/rust-lang-nursery/rustc-perf/issues/24","id":169528732,"number":24,"title":"Track down a good way of parsing/serializing dates passed from/to the frontend","user":{"login":"Mark-Simulacrum","id":5047365,"avatar_url":"https://avatars.githubusercontent.com/u/5047365?v=3","gravatar_id":"","url":"https://api.github.com/users/Mark-Simulacrum","html_url":"https://github.com/Mark-Simulacrum","followers_url":"https://api.github.com/users/Mark-Simulacrum/followers","following_url":"https://api.github.com/users/Mark-Simulacrum/following{/other_user}","gists_url":"https://api.github.com/users/Mark-Simulacrum/gists{/gist_id}","starred_url":"https://api.github.com/users/Mark-Simulacrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mark-Simulacrum/subscriptions","organizations_url":"https://api.github.com/users/Mark-Simulacrum/orgs","repos_url":"https://api.github.com/users/Mark-Simulacrum/repos","events_url":"https://api.github.com/users/Mark-Simulacrum/events{/privacy}","received_events_url":"https://api.github.com/users/Mark-Simulacrum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang-nursery/rustc-perf/labels/P-med","name":"P-med","color":"d93f0b"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-05T04:57:45Z","updated_at":"2016-09-14T01:03:04Z","closed_at":"2016-09-14T01:03:04Z","body":"Chrono struggles with parsing semi-arbitrary data.\r\n\r\nExtracted comment:\r\n> Also, I've been looking at [this existing URL](http://perf.rust-lang.org/graphs.html?start=Mon%20Jun%2013%202016%2019%3A51%3A42%20GMT%2B0000%20(UTC)&end=Wed%20Jul%2013%202016%2020%3A26%3A57%20GMT%2B0000%20(UTC)&kind=rustc&crates=total&phases=LLVM%20passes%2Ctranslation&group_by=phase) pointing at perf.rust-lang.org, and upon testing it with the current code, things break. I don't know of a good way to \"best effort parse this date we're throwing at you\" in Rust (and even in JS, truth be told). Without that, we'll either need to try and list all the cases we can think of (attempting parsing with each, failing, and moving on to the next one), or think of something else. Perhaps input sanitization? Regex-based search and recombine the input into something more readily parseable?\r\n\r\n> Let me know if you think we shouldn't care about backwards compatibility with URLs (I think we should). I'm also not 100% certain how to generate the [URL](http://perf.rust-lang.org/graphs.html?start=Mon%20Jun%2013%202016%2019%3A51%3A42%20GMT%2B0000%20(UTC)&end=Wed%20Jul%2013%202016%2020%3A26%3A57%20GMT%2B0000%20(UTC)&kind=rustc&crates=total&phases=LLVM%20passes%2Ctranslation&group_by=phase) in that issue, my attempts don't seem to produce the `HH:MM:SS GMT+0000 (UTC)` part.\r\n\r\n> ```\r\nError(Msg(\"while parsing Mon Jun 13 2016 19:51:42 GMT+0000 (UTC)\"), (Some(ParseError(TooLong)), stack backtrace:\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/rustc-perf/issues/comments/246874840","html_url":"https://github.com/rust-lang-nursery/rustc-perf/issues/24#issuecomment-246874840","issue_url":"https://api.github.com/repos/rust-lang-nursery/rustc-perf/issues/24","id":246874840,"user":{"login":"Mark-Simulacrum","id":5047365,"avatar_url":"https://avatars.githubusercontent.com/u/5047365?v=3","gravatar_id":"","url":"https://api.github.com/users/Mark-Simulacrum","html_url":"https://github.com/Mark-Simulacrum","followers_url":"https://api.github.com/users/Mark-Simulacrum/followers","following_url":"https://api.github.com/users/Mark-Simulacrum/following{/other_user}","gists_url":"https://api.github.com/users/Mark-Simulacrum/gists{/gist_id}","starred_url":"https://api.github.com/users/Mark-Simulacrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mark-Simulacrum/subscriptions","organizations_url":"https://api.github.com/users/Mark-Simulacrum/orgs","repos_url":"https://api.github.com/users/Mark-Simulacrum/repos","events_url":"https://api.github.com/users/Mark-Simulacrum/events{/privacy}","received_events_url":"https://api.github.com/users/Mark-Simulacrum/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T01:03:04Z","updated_at":"2016-09-14T01:03:04Z","body":"We (should, and do AFAICT) currently send ISO8601/RFC3339 dates to and from the frontend. Closing."}}
{"actor":{"display_login":"Mark-Simulacrum"}}