lib/crono/time_of_day.rb in crono-1.1.2 vs lib/crono/time_of_day.rb in crono-2.0.0

- old
+ new

@@ -6,11 +6,11 @@ attr_accessor :hour, :min def self.parse(value) time = case value - when String then Time.parse(value).utc - when Hash then Time.now.change(value).utc + when String then Time.zone.parse(value).utc + when Hash then Time.zone.now.change(value).utc when Time then value.utc else fail "Unknown TimeOfDay format: #{value.inspect}" end new time.hour, time.min