debian-mirror-gitlab/app/helpers/pipeline_schedules_helper.rb

12 lines
253 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
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