class DateTime

def local_offset

*DEPRECATED*: Use +DateTime.civil_from_format+ directly.
def local_offset
  ActiveSupport::Deprecation.warn 'DateTime.local_offset is deprecated. Use DateTime.civil_from_format directly.'
  ::Time.local(2012).utc_offset.to_r / 86400
end