Class: Date

Inherits:
Object show all
Defined in:
lib/wdd-ruby-ext/time.rb

Instance Method Summary collapse

Instance Method Details

#to_timezoneObject



3
4
5
# File 'lib/wdd-ruby-ext/time.rb', line 3

def to_timezone
  @day_start_timezone ||= ActiveSupport::TimeWithZone.new( nil, Time.zone, Time.utc( self.year, self.month, self.day ) )
end