{"action":"created","issue":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/588","labels_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/588/comments","events_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/588/events","html_url":"https://github.com/graphhopper/graphhopper/issues/588","id":119674774,"number":588,"title":"Duration parsing dependent from current time","user":{"login":"karussell","id":129644,"avatar_url":"https://avatars.githubusercontent.com/u/129644?v=3","gravatar_id":"","url":"https://api.github.com/users/karussell","html_url":"https://github.com/karussell","followers_url":"https://api.github.com/users/karussell/followers","following_url":"https://api.github.com/users/karussell/following{/other_user}","gists_url":"https://api.github.com/users/karussell/gists{/gist_id}","starred_url":"https://api.github.com/users/karussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karussell/subscriptions","organizations_url":"https://api.github.com/users/karussell/orgs","repos_url":"https://api.github.com/users/karussell/repos","events_url":"https://api.github.com/users/karussell/events{/privacy}","received_events_url":"https://api.github.com/users/karussell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/graphhopper/graphhopper/labels/bug","name":"bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/graphhopper/graphhopper/milestones/7","html_url":"https://github.com/graphhopper/graphhopper/milestones/0.6","labels_url":"https://api.github.com/repos/graphhopper/graphhopper/milestones/7/labels","id":1231288,"number":7,"title":"0.6","description":"","creator":{"login":"karussell","id":129644,"avatar_url":"https://avatars.githubusercontent.com/u/129644?v=3","gravatar_id":"","url":"https://api.github.com/users/karussell","html_url":"https://github.com/karussell","followers_url":"https://api.github.com/users/karussell/followers","following_url":"https://api.github.com/users/karussell/following{/other_user}","gists_url":"https://api.github.com/users/karussell/gists{/gist_id}","starred_url":"https://api.github.com/users/karussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karussell/subscriptions","organizations_url":"https://api.github.com/users/karussell/orgs","repos_url":"https://api.github.com/users/karussell/repos","events_url":"https://api.github.com/users/karussell/events{/privacy}","received_events_url":"https://api.github.com/users/karussell/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":55,"state":"open","created_at":"2015-07-29T10:14:51Z","updated_at":"2016-01-19T20:36:51Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-12-01T09:25:02Z","updated_at":"2016-01-19T20:36:51Z","closed_at":"2016-01-19T20:36:51Z","body":"Currently the parsing of two month is not a fixed amount of days (and a bit too strict), therefor it fails as of today ;)\r\n\r\n```java\r\nassertTrue(87840 * 60 <= OSMTagParser.parseDuration(\"P2M\"));\r\nassertTrue(87900 * 60 >= OSMTagParser.parseDuration(\"P2M\"));\r\n```\r\n\r\nShould/can we avoid this somehow and always use the same start date?\r\n\r\nOtherwise the span can be a bit broader:\r\n\r\n```java\r\n// 28+31\r\nassertTrue(2*28*24*60* 60 <= OSMTagParser.parseDuration(\"P2M\"));\r\n// 2*31 (dez+jan!)\r\nassertTrue(2*31*24*60* 60 >= OSMTagParser.parseDuration(\"P2M\"));\r\n```"},"comment":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/comments/172978339","html_url":"https://github.com/graphhopper/graphhopper/issues/588#issuecomment-172978339","issue_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/588","id":172978339,"user":{"login":"karussell","id":129644,"avatar_url":"https://avatars.githubusercontent.com/u/129644?v=3","gravatar_id":"","url":"https://api.github.com/users/karussell","html_url":"https://github.com/karussell","followers_url":"https://api.github.com/users/karussell/followers","following_url":"https://api.github.com/users/karussell/following{/other_user}","gists_url":"https://api.github.com/users/karussell/gists{/gist_id}","starred_url":"https://api.github.com/users/karussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karussell/subscriptions","organizations_url":"https://api.github.com/users/karussell/orgs","repos_url":"https://api.github.com/users/karussell/repos","events_url":"https://api.github.com/users/karussell/events{/privacy}","received_events_url":"https://api.github.com/users/karussell/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T20:36:51Z","updated_at":"2016-01-19T20:36:51Z","body":"It looks like this earlier date is running identical on windows machines."}}