fix start and end times for epoch