diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-06-11 19:09:38 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-06-11 19:09:38 +0300 |
commit | f8abc06ee5699daca80db7b5c74927f28416e655 (patch) | |
tree | 97ef09cb6159fecf8344bd4b327b2cecd820762c /app/models | |
parent | d6446335dafb71cc43bf3a04300729d5ad563adf (diff) |
Use Time.zone.now for Ci::PipelineSchedule#ideal_next_run_at
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/pipeline_schedule.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/ci/pipeline_schedule.rb b/app/models/ci/pipeline_schedule.rb index c40ad39be61..6a4241c94bc 100644 --- a/app/models/ci/pipeline_schedule.rb +++ b/app/models/ci/pipeline_schedule.rb @@ -73,7 +73,8 @@ module Ci private def ideal_next_run_at - Gitlab::Ci::CronParser.new(cron, cron_timezone).next_time_from(Time.now) + Gitlab::Ci::CronParser.new(cron, cron_timezone) + .next_time_from(Time.zone.now) end end end |