Fix fmod use with negative (pre-1970) times.