fix the issue when aggregating by month, the timestamps are not correct on the graph.