fixed millis to seconds rounding for ts