{"action":"created","issue":{"url":"https://api.github.com/repos/JodaOrg/joda-time/issues/338","labels_url":"https://api.github.com/repos/JodaOrg/joda-time/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/JodaOrg/joda-time/issues/338/comments","events_url":"https://api.github.com/repos/JodaOrg/joda-time/issues/338/events","html_url":"https://github.com/JodaOrg/joda-time/issues/338","id":122833411,"number":338,"title":"LocalDate, timestamps and conversions","user":{"login":"DanChaltiel","id":15105152,"avatar_url":"https://avatars.githubusercontent.com/u/15105152?v=3","gravatar_id":"","url":"https://api.github.com/users/DanChaltiel","html_url":"https://github.com/DanChaltiel","followers_url":"https://api.github.com/users/DanChaltiel/followers","following_url":"https://api.github.com/users/DanChaltiel/following{/other_user}","gists_url":"https://api.github.com/users/DanChaltiel/gists{/gist_id}","starred_url":"https://api.github.com/users/DanChaltiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanChaltiel/subscriptions","organizations_url":"https://api.github.com/users/DanChaltiel/orgs","repos_url":"https://api.github.com/users/DanChaltiel/repos","events_url":"https://api.github.com/users/DanChaltiel/events{/privacy}","received_events_url":"https://api.github.com/users/DanChaltiel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JodaOrg/joda-time/labels/NotABug","name":"NotABug","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-17T22:10:18Z","updated_at":"2016-01-01T01:24:55Z","closed_at":"2016-01-01T01:24:55Z","body":"Hello the team !\r\n\r\nI use conversion from and to long timestamps for storing dates in my database.\r\nHence, I have this issue :\r\n\r\n```\r\nLocalDate.now() //returns 2015-12-17, which is today\r\nnew LocalDate(LocalDate.now().toDate().getTime()); //returns 2015-12-16, which is yesterday\r\n```\r\n\r\nCan you reproduce this behavior ?\r\nIs that a bug ?\r\n\r\nAt least this is very unexpected.\r\nConversions elsewhere in my application don't seem to go wrong though."},"comment":{"url":"https://api.github.com/repos/JodaOrg/joda-time/issues/comments/168272860","html_url":"https://github.com/JodaOrg/joda-time/issues/338#issuecomment-168272860","issue_url":"https://api.github.com/repos/JodaOrg/joda-time/issues/338","id":168272860,"user":{"login":"jodastephen","id":213212,"avatar_url":"https://avatars.githubusercontent.com/u/213212?v=3","gravatar_id":"","url":"https://api.github.com/users/jodastephen","html_url":"https://github.com/jodastephen","followers_url":"https://api.github.com/users/jodastephen/followers","following_url":"https://api.github.com/users/jodastephen/following{/other_user}","gists_url":"https://api.github.com/users/jodastephen/gists{/gist_id}","starred_url":"https://api.github.com/users/jodastephen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodastephen/subscriptions","organizations_url":"https://api.github.com/users/jodastephen/orgs","repos_url":"https://api.github.com/users/jodastephen/repos","events_url":"https://api.github.com/users/jodastephen/events{/privacy}","received_events_url":"https://api.github.com/users/jodastephen/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T01:24:55Z","updated_at":"2016-01-01T01:24:55Z","body":"This can happen if the time-zone returned by `DateTimeZone.getDefault()` does not have the same rules as that returned by `TimeZone.getDefault()`."}}