Skip to content

Commit

Permalink
extend the right DateTime ^^;
Browse files Browse the repository at this point in the history
  • Loading branch information
ttilley committed Dec 31, 2009
1 parent 18dba34 commit d665bbe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/time_crisis/support/ext/date_time/zones.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class DateTime
def in_time_zone(zone = ::TimeCrisis::Time.zone)
TimeCrisis::TimeWithZone.new(utc? ? self : getutc, ::TimeCrisis::Time.__send__(:get_zone, zone))
module TimeCrisis
class DateTime
def in_time_zone(zone = ::TimeCrisis::Time.zone)
TimeCrisis::TimeWithZone.new(utc? ? self : getutc, ::TimeCrisis::Time.__send__(:get_zone, zone))
end
end
end

0 comments on commit d665bbe

Please sign in to comment.