correct startTime calculation for pubsub