1.(Riesz-Dunford Functional Calculus)
Consider the function $f(z):=|z|^2$ defined on the real and imaginary axis only. Then around every point it has an extension to a continuously differentiable function within some neighborhood. But that extension is confined to the Cauchy Riemann equations and therefore it must be $f(z)=+z^2$ and $f(z)=-z^2$ simultaneously in every neighborhood of zero which is impossible. So the answer to the first problem is: No, in general there won't be an extension continuously differentiable in a whole neighborhood.
2.(Manifolds with Boundary)
Besides this example still not resolvesdoesn't resolve(!) the second problem as one can choose the following extension: