gitlab-org--gitlab-foss/app/helpers/pipeline_schedules_helper.rb

12 lines
252 B
Ruby
Raw Normal View History

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