refine date / time error handling