Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
The amount of precision times have in databases is variable, so we need tolerances when comparing in specs. It's better to have the tolerance defined in one place than several.