app/controllers/kuroko2/job_timelines_controller.rb in kuroko2-0.2.1 vs app/controllers/kuroko2/job_timelines_controller.rb in kuroko2-0.2.2
- old
+ new
@@ -37,10 +37,10 @@
@user = current_user
end
end
def set_period
- @end_at = Time.now
+ @end_at = Time.current
@start_at =
case params[:period]
when /\A(\d+)h\z/
$1.to_i.hours.ago(@end_at)