Handle invalid timestamps