fix source/target timestamp comparisons