lib/fluent/plugin/out_mail.rb in fluent-plugin-mail-0.0.3 vs lib/fluent/plugin/out_mail.rb in fluent-plugin-mail-0.0.4
- old
+ new
@@ -162,11 +162,11 @@
end
subject = subject.force_encoding('binary')
body = msg.force_encoding('binary')
- if time_local
- date = Time::now.timezone(time_local)
+ if time_locale
+ date = Time::now.timezone(time_locale)
else
date = Time::now
end
smtp.send_mail(<<EOS, @from, @to.split(/,/), @cc.split(/,/), @bcc.split(/,/))