Fixing the error "The end instant must be greater or equal to the start" to due rounding of milliseconds