lib/teasy/floating_time.rb in teasy-0.2.0 vs lib/teasy/floating_time.rb in teasy-0.2.1
- old
+ new
@@ -23,10 +23,10 @@
def self.from_time(time)
new(time.year, time.mon, time.day,
time.hour, time.min, time.sec, time.nsec / 1_000.0)
end
- def in_time_zone(zone)
+ def in_time_zone(zone = Teasy.default_zone)
Teasy.with_zone(zone) { TimeWithZone.from_time(self) }
end
def round!(*args)
@time = time.round(*args)