diff options
Diffstat (limited to 'app/helpers/time_zone_helper.rb')
-rw-r--r-- | app/helpers/time_zone_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/time_zone_helper.rb b/app/helpers/time_zone_helper.rb index 00f65b72c8e..fe045182c96 100644 --- a/app/helpers/time_zone_helper.rb +++ b/app/helpers/time_zone_helper.rb @@ -18,7 +18,7 @@ module TimeZoneHelper def timezone_data(format: :short) attrs = TIME_ZONE_FORMAT_ATTRS.fetch(format) do valid_formats = TIME_ZONE_FORMAT_ATTRS.keys.map { |k| ":#{k}"}.join(", ") - raise ArgumentError.new("Invalid format :#{format}. Valid formats are #{valid_formats}.") + raise ArgumentError, "Invalid format :#{format}. Valid formats are #{valid_formats}." end ActiveSupport::TimeZone.all.map do |timezone| |