Sha256: 792f30e17d2e4573aa9e0636a5c6e5d2989e0a24b44c00be7c4dc11195bee305

Contents?: true

Size: 137 Bytes

Versions: 9

Compression:

Stored size: 137 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
timely-0.5.0 lib/timely/rails/date.rb
timely-0.4.2 lib/timely/rails/date.rb
timely-0.4.1 lib/timely/rails/date.rb
timely-0.4.0 lib/timely/rails/date.rb
timely-0.3.4 lib/timely/rails/date.rb
timely-0.3.2 lib/timely/rails/date.rb
timely-0.3.1 lib/timely/rails/date.rb
timely-0.3.0 lib/timely/rails/date.rb
timely-0.1.0 lib/timely/rails/date.rb