Try this instead:
```ruby
a = @lib.log_commits :count => 20, :since => "#{Time.now.year - (Time.now.year - 6)} years ago"
```
(Changed to use the `Time` class instead of `Date`, as it's in Ruby core.)