making sure created_at is a timestamp