lib/job.rb in ncr-background_fu-1.0.7 vs lib/job.rb in ncr-background_fu-1.0.8

- old
+ new

@@ -48,11 +48,11 @@ logger.info("BackgroundFu: Job restarted. Job(id: #{id}).") end end def initialize_worker - update_attributes!(:started_at => Time.now, :state => "running") + update_attributes!(:started_at => Time.now.utc, :state => "running") @worker = worker_class.constantize.new logger.info("BackgroundFu: Job initialized. Job(id: #{id}).") end def invoke_worker @@ -105,9 +105,9 @@ # Job will be executed after this timestamp. def setup_start_at return unless start_at.blank? - self.start_at = Time.now + self.start_at = Time.now.utc end end