Created
March 30, 2011 20:33
-
-
Save markysharky70/895235 to your computer and use it in GitHub Desktop.
Mail::ReceivedField.formatted_date throwing "invalid date" error (temp fix)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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