ts -> offset