summaryrefslogtreecommitdiff
path: root/app/helpers/pipeline_schedules_helper.rb
blob: 4b9f6bd2cafc619ae3d38e601e664f31e48ace5d (plain)
1
2
3
4
5
6
7
8
9
10
11
module PipelineSchedulesHelper
  def timezone_data
    ActiveSupport::TimeZone.all.map do |timezone|
      {
        name: timezone.name,
        offset: timezone.now.utc_offset,
        identifier: timezone.tzinfo.identifier
      }
    end
  end
end