lib/rcap/extensions/date_time.rb in rcap-2.7.0 vs lib/rcap/extensions/date_time.rb in rcap-2.7.3
- old
+ new
@@ -1,7 +1,9 @@
+# frozen_string_literal: true
+
class DateTime
- alias_method :inspect, :to_s
+ alias inspect to_s
# Returns a string representaion of the time suitable for CAP.
# @return [String]
# @example
# DateTime.now.to_s_for_cap # => "2011-10-26T21:45:00+02:00"
@@ -13,9 +15,10 @@
def blank?
false
end
private
+
def utc_hours_offset
offset * 24
end
end