normalize_datetime would crash when adding 1 second to a datetime at 59 seconds.  Switched to using timedelta and added unitests for normalize_datetime.