/usr/lib/ruby/vendor_ruby/active_support/core_ext/date/zones.rb is in ruby-activesupport-3.2 3.2.6-6+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | require 'date'
require 'active_support/core_ext/time/zones'
class Date
# Converts Date to a TimeWithZone in the current zone if Time.zone or Time.zone_default
# is set, otherwise converts Date to a Time via Date#to_time
def to_time_in_current_zone
if ::Time.zone
::Time.zone.local(year, month, day)
else
to_time
end
end
end
|