Prevent duplicate time field and fixed the time field type for influxdb