fix support for negative years.

Fixes #168