Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/cron_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down