Fix adding of seconds to dates.