Truncate timestamps for comparison purposes

Timestamps are truncated to the nearest second for comparison purposes.
This should avoid the rounding problems we see once in a while with the
nano information in place.