diff --git a/lib/cron_parser.rb b/lib/cron_parser.rb index 41a8a5e..712ffd9 100644 --- a/lib/cron_parser.rb +++ b/lib/cron_parser.rb @@ -15,12 +15,13 @@ def initialize(time,time_source = Time) @day = time.day @hour = time.hour @min = time.min + @gmtoff = time.gmtoff @time_source = time_source end def to_time - time_source.local(@year, @month, @day, @hour, @min, 0) + time_source.new(@year, @month, @day, @hour, @min, 0, @gmtoff) end def inspect