{"action":"created","issue":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/374","labels_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/374/comments","events_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/374/events","html_url":"https://github.com/joel-costigliola/assertj-core/issues/374","id":69164255,"number":374,"title":"Use strict instead of lenient date parsing mode by default","user":{"login":"mkordas","id":5467276,"avatar_url":"https://avatars.githubusercontent.com/u/5467276?v=3","gravatar_id":"","url":"https://api.github.com/users/mkordas","html_url":"https://github.com/mkordas","followers_url":"https://api.github.com/users/mkordas/followers","following_url":"https://api.github.com/users/mkordas/following{/other_user}","gists_url":"https://api.github.com/users/mkordas/gists{/gist_id}","starred_url":"https://api.github.com/users/mkordas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkordas/subscriptions","organizations_url":"https://api.github.com/users/mkordas/orgs","repos_url":"https://api.github.com/users/mkordas/repos","events_url":"https://api.github.com/users/mkordas/events{/privacy}","received_events_url":"https://api.github.com/users/mkordas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-17T15:46:12Z","updated_at":"2015-04-18T13:16:40Z","closed_at":null,"body":"While parsing String representing the date, [setLenient(false)](http://docs.oracle.com/javase/7/docs/api/java/text/DateFormat.html#setLenient(boolean)) mode should be used.\r\n\r\nIt solves some date parsing anomalies, such as allowing January 32nd to be interpreted as February first or even January -1st as December 31st. More examples can be found [here](http://stackoverflow.com/questions/7606387/what-is-the-use-of-lenient).\r\n\r\nThe commit message should say that it's a braking change so that when I do the release notes I won't forget it.\r\n\r\nWe need a way to set the parsing leniency so that users can switch to the old behaviour. The (new) default behaviour being not to be lenient.\r\n\r\n##### Design question\r\n* Should this be static and global AssertJ parameter? Then we need to add a method `setStrictDateParsing(boolean)` in Assertions delegating the real work to the same method in `AbstractDateAssert`.\r\n* Otherwise we may add e.g. `usingLenientDateParsing()` to `AbstractDateAssert` to parse date leniently just for one particular assertion."},"comment":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/comments/94164446","html_url":"https://github.com/joel-costigliola/assertj-core/issues/374#issuecomment-94164446","issue_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/374","id":94164446,"user":{"login":"mkordas","id":5467276,"avatar_url":"https://avatars.githubusercontent.com/u/5467276?v=3","gravatar_id":"","url":"https://api.github.com/users/mkordas","html_url":"https://github.com/mkordas","followers_url":"https://api.github.com/users/mkordas/followers","following_url":"https://api.github.com/users/mkordas/following{/other_user}","gists_url":"https://api.github.com/users/mkordas/gists{/gist_id}","starred_url":"https://api.github.com/users/mkordas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkordas/subscriptions","organizations_url":"https://api.github.com/users/mkordas/orgs","repos_url":"https://api.github.com/users/mkordas/repos","events_url":"https://api.github.com/users/mkordas/events{/privacy}","received_events_url":"https://api.github.com/users/mkordas/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T13:16:40Z","updated_at":"2015-04-18T13:16:40Z","body":"OK - should it be global option per ClassLoader (`private static` field) or global option per Thread (`private static ThreadLocal<Boolean>` field)?"}}