Changing time precision in graph hover tool-tip

Hi everyone
I have a graph, with data coming in every five minutes. Everything works fine, except that when hovering over the trends, the timestamp is shown as hh:mm:ss.000. Any ideas how to get rid of the milliseconds?