fixed logic in latest for time partitions [TDS-450]