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.
Merge pull request #220 from ktf/fix-validation

Fix validation to work on mac again.