Improve support for negative dates (date before year 0)

Negative dates are no longer mixed with positive ones.