Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… Time with 0 failed
  • Loading branch information
danhixon authored and javan committed Apr 26, 2010
1 parent e3ea5d6 commit efd3dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whenever/outputs/cron.rb
Expand Up @@ -60,7 +60,7 @@ def parse_symbol
end

if shortcut
if @at > 0
if @at.is_a?(Time) || (@at.is_a?(Numeric) && @at>0)
raise ArgumentError, "You cannot specify an ':at' when using the shortcuts for times."
else
return shortcut
Expand Down

0 comments on commit efd3dd7

Please sign in to comment.