Time.now => Time.zone.now
This commit is contained in:
parent
13ffa61435
commit
2238e5bd9f
21 changed files with 55 additions and 55 deletions
|
@ -1,10 +1,10 @@
|
|||
class ApplicationJob < ActiveJob::Base
|
||||
before_perform do |job|
|
||||
Rails.logger.info("#{job.class.name} started at #{Time.now}")
|
||||
Rails.logger.info("#{job.class.name} started at #{Time.zone.now}")
|
||||
end
|
||||
|
||||
after_perform do |job|
|
||||
Rails.logger.info("#{job.class.name} ended at #{Time.now}")
|
||||
Rails.logger.info("#{job.class.name} ended at #{Time.zone.now}")
|
||||
end
|
||||
|
||||
def error(job, exception)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue