{"action":"opened","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/592","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/592/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/592/events","html_url":"https://github.com/eclipse/smarthome/issues/592","id":120137695,"number":592,"title":"DateTimeType isn't thread safe (see OH1 #2945)","user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eclipse/smarthome/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T10:23:54Z","updated_at":"2015-12-03T10:23:54Z","closed_at":null,"body":"migrated from Bugzilla [#475975](https://bugs.eclipse.org/bugs/show_bug.cgi?id=475975)\nstatus NEW severity *normal* in component *Core* for *---*\nReported in version *0.8.0* on platform *All*\nAssigned to: Project Inbox\n\nOn 2015-08-26 18:06:04 -0400, Thomas EichstÃ¤dt-Engelen wrote:\n\n> DateTimeType uses a public static SimpleDateFormatter meaning that this class isn't thread safe.\n> \n> The formatter is used in lots of places in DateTimeType it is also public allowing anyone access (making this a little difficult to fix as it could be used in rules).\n> \n> Proper fix would be to make these formats private and then provide formatting methods or a method to get a formatter that returns a new one each time.\n> \n> An easy fix just for the DateTimeType object would be to use a synchronized internal SimpleDateFormatter internally in DateTimeType then at least this would be safe. There would still be a risk in rules using the public formatters.\n> \n> A solution for OH1 has been provided by https://github.com/openhab/openhab/pull/2962 which has to be ported as well to ESH.\n\nOn 2015-08-26 18:11:40 -0400, Benjamin CabÃ© wrote:\n\n> *** Bug 475976 has been marked as a duplicate of this bug. ***\n\nOn 2015-08-26 18:32:55 -0400, Thomas EichstÃ¤dt-Engelen wrote:\n\n> thanks for the cleanup Benjamin!\n\n"}}