gitlab-org--gitlab-foss/app/helpers/pipeline_schedules_helper.rb
2018-09-06 17:33:46 -07:00

13 lines
283 B
Ruby

# frozen_string_literal: true
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