Sha256: 9260ef5888ab163200a5b1a50801f10d6fb649971fe4afbc699f5b4e28cfa81c

Contents?: true

Size: 154 Bytes

Versions: 9

Compression:

Stored size: 154 Bytes

Contents

module TimeZoneHelper
  def local_time(time, time_zone = Time.zone.name)
    "#{l(time.in_time_zone(time_zone), format: :long)} (#{time_zone})"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mumuki-laboratory-9.16.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.15.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.14.1 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.14.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.13.2 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.13.1 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.13.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.12.1 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.12.0 app/helpers/time_zone_helper.rb