{"action":"created","issue":{"url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1335","labels_url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1335/labels{/name}","comments_url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1335/comments","events_url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1335/events","html_url":"https://github.com/galaxyproject/galaxy/pull/1335","id":122455752,"number":1335,"title":"Modify function \"pretty_print_time_interval\"","user":{"login":"matthdsm","id":11850640,"avatar_url":"https://avatars.githubusercontent.com/u/11850640?v=3","gravatar_id":"","url":"https://api.github.com/users/matthdsm","html_url":"https://github.com/matthdsm","followers_url":"https://api.github.com/users/matthdsm/followers","following_url":"https://api.github.com/users/matthdsm/following{/other_user}","gists_url":"https://api.github.com/users/matthdsm/gists{/gist_id}","starred_url":"https://api.github.com/users/matthdsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthdsm/subscriptions","organizations_url":"https://api.github.com/users/matthdsm/orgs","repos_url":"https://api.github.com/users/matthdsm/repos","events_url":"https://api.github.com/users/matthdsm/events{/privacy}","received_events_url":"https://api.github.com/users/matthdsm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-16T08:51:39Z","updated_at":"2015-12-16T11:31:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/galaxyproject/galaxy/pulls/1335","html_url":"https://github.com/galaxyproject/galaxy/pull/1335","diff_url":"https://github.com/galaxyproject/galaxy/pull/1335.diff","patch_url":"https://github.com/galaxyproject/galaxy/pull/1335.patch"},"body":"I've been having an issues with the API when creating data libraries through the new interface. I have a Galaxy server running on Ubuntu 14.04.3 with a MariaDB server in the back. Apparently, the time returned from the database doesn't include the milliseconds, hence dropping the requirement for milliseconds fixes my issues.\r\nI've been in talks with @martenson and @natefoo about this over at Biostar\r\nhttps://biostar.usegalaxy.org/p/15330/#15373"},"comment":{"url":"https://api.github.com/repos/galaxyproject/galaxy/issues/comments/165075228","html_url":"https://github.com/galaxyproject/galaxy/pull/1335#issuecomment-165075228","issue_url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1335","id":165075228,"user":{"login":"dannon","id":155398,"avatar_url":"https://avatars.githubusercontent.com/u/155398?v=3","gravatar_id":"","url":"https://api.github.com/users/dannon","html_url":"https://github.com/dannon","followers_url":"https://api.github.com/users/dannon/followers","following_url":"https://api.github.com/users/dannon/following{/other_user}","gists_url":"https://api.github.com/users/dannon/gists{/gist_id}","starred_url":"https://api.github.com/users/dannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannon/subscriptions","organizations_url":"https://api.github.com/users/dannon/orgs","repos_url":"https://api.github.com/users/dannon/repos","events_url":"https://api.github.com/users/dannon/events{/privacy}","received_events_url":"https://api.github.com/users/dannon/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T11:31:44Z","updated_at":"2015-12-16T11:31:44Z","body":"I don't think this approach is going to work -- standard length strings will barf.\r\n\r\n```\r\nIn [7]: print time_l\r\n2015-12-14T11:48:53.115120\r\n\r\nIn [8]: print datetime.datetime.strptime(time_l, \"%Y-%m-%dT%H:%M:%S\")\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-8-9ea045c6f6d9> in <module>()\r\n----> 1 print datetime.datetime.strptime(time_l, \"%Y-%m-%dT%H:%M:%S\")\r\n\r\n/usr/lib/python2.7/_strptime.pyc in _strptime(data_string, format)\r\n    326     if len(data_string) != found.end():\r\n    327         raise ValueError(\"unconverted data remains: %s\" %\r\n--> 328                           data_string[found.end():])\r\n    329 \r\n    330     year = None\r\n\r\nValueError: unconverted data remains: .115120\r\n```"}}