debian-mirror-gitlab/app/helpers/pipeline_schedules_helper.rb
2018-11-18 11:00:15 +05:30

11 lines
252 B
Ruby

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