Cut off milisecond resolution in json data for line graphs