diff --git a/app/models/action_smser/delivery_report.rb b/app/models/action_smser/delivery_report.rb index d84efc4..6a9a23e 100644 --- a/app/models/action_smser/delivery_report.rb +++ b/app/models/action_smser/delivery_report.rb @@ -27,7 +27,7 @@ def self.create_from_sms(sms, to, sms_id) def status=(stat, skip_log = false) self[:status] = stat self.status_updated_at = Time.now - add_log("#{Time.now.to_s(:db)}: #{stat}") unless skip_log + add_log("#{Time.now.to_fs(:db)}: #{stat}") unless skip_log end def add_log(str) diff --git a/app/views/action_smser/delivery_reports/index.html.erb b/app/views/action_smser/delivery_reports/index.html.erb index af0eeaf..ee1110f 100644 --- a/app/views/action_smser/delivery_reports/index.html.erb +++ b/app/views/action_smser/delivery_reports/index.html.erb @@ -39,7 +39,7 @@

Delivery Reports Summary for - (<%= "#{time_span.first.to_s(:db)} => #{time_span.last.to_s(:db)}" %>) + (<%= "#{time_span.first.to_fs(:db)} => #{time_span.last.to_fs(:db)}" %>) <%= "for #{params[:gateway]}" unless params[:gateway].blank? %>