{"action":"closed","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2513","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2513/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2513/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2513/events","html_url":"https://github.com/spring-projects/spring-boot/issues/2513","id":57924460,"number":2513,"title":"spring-boot-actuator Metric should not use java.util.Date","user":{"login":"CodingFabian","id":176132,"avatar_url":"https://avatars.githubusercontent.com/u/176132?v=3","gravatar_id":"","url":"https://api.github.com/users/CodingFabian","html_url":"https://github.com/CodingFabian","followers_url":"https://api.github.com/users/CodingFabian/followers","following_url":"https://api.github.com/users/CodingFabian/following{/other_user}","gists_url":"https://api.github.com/users/CodingFabian/gists{/gist_id}","starred_url":"https://api.github.com/users/CodingFabian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodingFabian/subscriptions","organizations_url":"https://api.github.com/users/CodingFabian/orgs","repos_url":"https://api.github.com/users/CodingFabian/repos","events_url":"https://api.github.com/users/CodingFabian/events{/privacy}","received_events_url":"https://api.github.com/users/CodingFabian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/discussion","name":"discussion","color":"006b75"},{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/on%20hold","name":"on hold","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-17T13:34:37Z","updated_at":"2015-05-13T12:56:24Z","closed_at":"2015-05-13T12:56:23Z","body":"Hi,\r\nI know this might be difficult to get out, as this is kind-of API, but `org.springframework.boot.actuate.metrics.Metric` uses `java.util.Date` to record timestamps.\r\nThis is a huge waste of memory and CPU time, as `Date` might be among the most inefficient data structures due to the way it deals with time zones.\r\nThe fact that this is created on every call doesn't look too promising.\r\n\r\nShouldn't it be possible to use for example `System.currentTimeMillis()` and let the readers decide if they want to format it with timezone?"}}