Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save markysharky70/895235 to your computer and use it in GitHub Desktop.
Save markysharky70/895235 to your computer and use it in GitHub Desktop.
Mail::ReceivedField.formatted_date throwing "invalid date" error (temp fix)
Mail::ReceivedField.class_eval do
def formatted_date
date_time.strftime("%a, %d %b %Y %H:%M:%S ") + date_time.zone.delete(':')
rescue ArgumentError => e
raise e unless "invalid date"==e.message
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment