Fix a bug with timestamp rounding and selecting latest coverage entry instead of first one