Sha256: edf2112b821fb6691295e21165db6c6298a05dd39781c1f7d4db5086db6d73dd

Contents?: true

Size: 474 Bytes

Versions: 9

Compression:

Stored size: 474 Bytes

Contents

class Time
  # Ruby 1.9 defines Time#to_time natively (as part of the
  # stdlib Time, rather than core Time), but it returns
  # the time in the local timezone. ActiveSupport contains
  # the following definition, but it is only actually used
  # by Ruby 1.8.7. We wish to continue with that behaviour,
  # as local time zones have caused problems with our
  # Time#to_s format (which either formats as '%d.%m.%Y %H:%M'
  # or '%d.%m.%Y').
  def to_time
    self
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ndr_support-4.2.0 lib/ndr_support/time/conversions.rb
ndr_support-4.1.2 lib/ndr_support/time/conversions.rb
ndr_support-4.1.1 lib/ndr_support/time/conversions.rb
ndr_support-4.0.1 lib/ndr_support/time/conversions.rb
ndr_support-4.0.0 lib/ndr_support/time/conversions.rb
ndr_support-3.3.0 lib/ndr_support/time/conversions.rb
ndr_support-3.2.1 lib/ndr_support/time/conversions.rb
ndr_support-3.2.0 lib/ndr_support/time/conversions.rb
ndr_support-3.1.1 lib/ndr_support/time/conversions.rb