summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorCollen <collen@gitlab.com>2018-07-10 15:22:13 +0000
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-07-10 15:22:13 +0000
commit798608af94f092dd6289b7da0f57bd1c8307e2f0 (patch)
treecdcde46e9af7a2176fe92d56b28029f584bdcb68 /app/helpers
parentb40e71d6f3c71cd7d46bb64561ee2b291b3f8394 (diff)
downloadgitlab-ce-798608af94f092dd6289b7da0f57bd1c8307e2f0.tar.gz
Add daylight saving time support for pipeline schedules
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/pipeline_schedules_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/pipeline_schedules_helper.rb b/app/helpers/pipeline_schedules_helper.rb
index 6edaf78de1b..4b9f6bd2caf 100644
--- a/app/helpers/pipeline_schedules_helper.rb
+++ b/app/helpers/pipeline_schedules_helper.rb
@@ -3,7 +3,7 @@ module PipelineSchedulesHelper
ActiveSupport::TimeZone.all.map do |timezone|
{
name: timezone.name,
- offset: timezone.utc_offset,
+ offset: timezone.now.utc_offset,
identifier: timezone.tzinfo.identifier
}
end