I've written software like that. Just try to get your boss to let you fix it!
"But I've got to fix it, else it'll crash after 248 days."
"Who cares? - there's no chance of it staying up for that long anyway, it'll have crashed for some other reason long before then. Go and do something actually useful instead."