Handling strftime exception when year < 1900