node_presave doesn't work
hook_node_presave() is only invoked for modules, so you can't implement it in a theme. 

It'll need to go in a custom module instead.

From a best practice point of view, that sort of logic definitely shouldn't be at the theme layer, it should be in a module.