diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2017-05-08 01:35:56 +0300 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2017-05-08 01:35:56 +0300 |
commit | 8df3997a92bffa2d29f3c559933a336b837cdb93 (patch) | |
tree | 5ee50876b35b6c5fd40607665f72468cfcee51fe /app/helpers/pipeline_schedules_helper.rb | |
parent | 8a0cde81feb3c8f3af26eefa5cef7b72eda2d266 (diff) |
Add Pipeline Schedules that supersedes experimental Trigger Schedule
Diffstat (limited to 'app/helpers/pipeline_schedules_helper.rb')
-rw-r--r-- | app/helpers/pipeline_schedules_helper.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/pipeline_schedules_helper.rb b/app/helpers/pipeline_schedules_helper.rb new file mode 100644 index 00000000000..fee1edc2a1b --- /dev/null +++ b/app/helpers/pipeline_schedules_helper.rb @@ -0,0 +1,11 @@ +module PipelineSchedulesHelper + def timezone_data + ActiveSupport::TimeZone.all.map do |timezone| + { + name: timezone.name, + offset: timezone.utc_offset, + identifier: timezone.tzinfo.identifier + } + end + end +end |