Windows only accepts dates between 1970 and 2038 for localtime convert  and throws an ValueError if the date is outside

As a workaround the function now gives back the unchanged Date in case of a ValueError