fix force_utc

pull/6827/head
Konstantin Haase 14 years ago
parent 7f62ef1096
commit cdc2e8e1c6
  1. 11
      lib/to_date_patch.rb

@ -9,11 +9,6 @@ module ToDatePatch
return Date.today if blank?
Date.parse self
end
def force_utc
return self if utc?
utc - utc_offset
end
end
module DateAndTime
@ -23,5 +18,11 @@ module ToDatePatch
def to_dateish
self
end
def force_utc
return to_time.force_utc unless repond_to? :utc_offset
return self if utc?
utc - utc_offset
end
end
end

Loading…
Cancel
Save