Sha256: 4c2c62cc718569bda0f314d93ae1d2a08d57c82a405ac3eb27aa89f2fe2f4a2c

Contents?: true

Size: 280 Bytes

Versions: 9

Compression:

Stored size: 280 Bytes

Contents

module TimeZoneHelper
  def local_time(time, time_zone = Time.zone.name)
    "#{local_time_without_time_zone(time, time_zone)} (#{time_zone})"
  end

  def local_time_without_time_zone(time, time_zone = Time.zone.name)
    l(time.in_time_zone(time_zone), format: :long)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.22.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.21.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.20.1 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.20.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.19.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.18.1 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.18.0 app/helpers/time_zone_helper.rb
mumuki-laboratory-9.17.0 app/helpers/time_zone_helper.rb