Sha256: a2dbeacfd575c654833ec676032ff1f826eaf34a3d0f95aab5ea1a466e2a06ae

Contents?: true

Size: 153 Bytes

Versions: 9

Compression:

Stored size: 153 Bytes

Contents

# frozen_string_literal: true

class Date
  def to_time_in_time_zone
    (Time.zone || ActiveSupport::TimeZone['UTC']).local(year, month, day)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
timely-0.14.0 lib/timely/rails/date.rb
timely-0.13.0 lib/timely/rails/date.rb
timely-0.12.0 lib/timely/rails/date.rb
timely-0.11.0 lib/timely/rails/date.rb
timely-0.10.0 lib/timely/rails/date.rb
timely-0.9.0 lib/timely/rails/date.rb
timely-0.8.0 lib/timely/rails/date.rb
timely-0.7.0 lib/timely/rails/date.rb
timely-0.6.0 lib/timely/rails/date.rb