diff options
Diffstat (limited to 'app/models/request_mailer.rb')
-rw-r--r-- | app/models/request_mailer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/request_mailer.rb b/app/models/request_mailer.rb index f7cc088c1..5ea5df802 100644 --- a/app/models/request_mailer.rb +++ b/app/models/request_mailer.rb @@ -35,6 +35,10 @@ class RequestMailer < ApplicationMailer @recipients = info_request.incoming_name_and_email @body = { :body => body } + # ActionMailer only works properly when the time is in the local timezone: + # see https://rails.lighthouseapp.com/projects/8994/tickets/3113-actionmailer-only-works-correctly-with-sent_on-times-that-are-in-the-local-time-zone + @sent_on = sent_at.dup.localtime + attachments.each do |attachment_hash| attachment attachment_hash end |