Fix validation to work on mac again.

Do not use date, because that tends to fail when a job happens to span more
than a day, like it often happens on mac.