engineering: improved time validation