isValid fix for Unix timestamps